RANS Part 1: Poisson wall distance #2031
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 inERF::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.
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.
Input files (need to comment out the
#if 0
blocks to test):inputs_flat_abl_walldist.txt
inputs_thinaf_walldist.txt