Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RANS Part 1: Poisson wall distance #2031

Merged
merged 14 commits into from
Dec 19, 2024
Merged

Conversation

ewquon
Copy link
Contributor

@ewquon ewquon commented Dec 18, 2024

Wall distance is needed to estimate RANS length scales. Currently implemented is the trivial case of using the Poisson equation (Tucker 2003, JCP) over flat terrain.

To activate this code path, set erf.rans_type = "kEqn". At the moment, the code will simply fill a walldist MultiFab (which can be included as an output in the plot_vars list) with the distance from the zlo boundary. To activate the Poisson solver, the appropriate comment blocks in ERF::poisson_wall_dist() should be removed.

Here, the Poisson approach recovers the exact wall-normal distance with an error of 0.2% the grid spacing at cell centers.
image

Also implemented is blanking for thin immersed bodies. While results appear qualitatively correct, the Poisson wall distances are inaccurate away from the body. I've verified that the error is reduced as the size of the immersed body increases relative to the domain extent.
walldist_thinbody_2d


Input files (need to comment out the #if 0 blocks to test):
inputs_flat_abl_walldist.txt
inputs_thinaf_walldist.txt

@ewquon
Copy link
Contributor Author

ewquon commented Dec 18, 2024

FYI, @hgopalan. I think I've got a handle on this poisson solve and I think it should work for general terrain. Just need to plug in the appropriate terrain metrics, following the pressure solver code in the anelastic path.

@AMLattanzi AMLattanzi merged commit e63a233 into erf-model:development Dec 19, 2024
12 checks passed
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.

2 participants