Skip to content

Add SPS turbulence model#1062

Draft
LasNikas wants to merge 8 commits intotrixi-framework:mainfrom
LasNikas:turbulence-model-sps
Draft

Add SPS turbulence model#1062
LasNikas wants to merge 8 commits intotrixi-framework:mainfrom
LasNikas:turbulence-model-sps

Conversation

@LasNikas
Copy link
Collaborator

@LasNikas LasNikas commented Jan 27, 2026

Literature

Dalrymple and Rogers (2005): https://doi.org/10.1016/j.coastaleng.2005.10.004 Laha et al. (2024): https://doi.org/10.1038/s41598-024-57177-w
image image
Laha et al. (2025): https://doi.org/10.1007/s40571-024-00879-9 Chatzoglou et al. (2025): https://doi.org/10.1080/19942060.2025.2591376
image image

Analytical velocity profile of Poiseuille flow

image

Physical wall and extrapolated velocity

image

In English et al. (2021, https://doi.org/10.1007/s40571-021-00403-3), Sec. 3 mDBC formulation:

To approximate the no-slip condition at solid boundaries, the velocities of the boundary particles are set to zero.

image

WSS (Re = 50)

wss_analytical = 4 * dynamic_viscosity * v_max / wall_distance = 0.0125

Eq. 12, Laha et al. (2024a)

image

tau_w = 2 * dynamic_viscosity .* S

Zero boundary velocity Extrapolated boundary velocity
image image

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 0% with 126 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.14%. Comparing base (faa6ce9) to head (1825d0a).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/schemes/fluid/turbulence_model.jl 0.00% 126 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1062      +/-   ##
==========================================
- Coverage   89.56%   88.14%   -1.42%     
==========================================
  Files         121      122       +1     
  Lines        8816     8992     +176     
==========================================
+ Hits         7896     7926      +30     
- Misses        920     1066     +146     
Flag Coverage Δ
total 88.14% <0.00%> (-1.42%) ⬇️
unit 64.48% <0.00%> (-1.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant