Repository navigation
Give wall patches their own nut condition - #110
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A wall patch whose nut condition is not a wall function takes that condition, as OpenFOAM's correctNut evaluates it, instead of a wall function's value. Examples are a slip ground with nut calculated or zeroGradient, and a low-Re wall with nut fixedValue 0.
OpenFOAM: nut on any patch, a wall's included, is what that patch's own nut condition evaluates in correctNut (
nut_.correctBoundaryConditions()). A wall function is one nut condition among others (nutkWallFunction, nutUSpaldingWallFunction, ...).brae before: the device driver marked every
wall-typed patch as a wall-function patch, and every nut evaluation took "not a wall" to mean "not of type wall". So a slip ground or a low-Re wall ran with a wall function's nut on its faces, and with the wrong nuEff there. Under SpalartAllmaras such a wall was refused at start-up ("the SA path writes its wall function on every wall face").Change:
DeviceSimpleControls::nutWallFnPatch, awallpatch with anisNutWallFnTypecondition).guardNonWallNutnow also refuses, by name, a type it does not evaluate on such a wall.sa_wallfunction_refusalsarm 5,regex_patchkey_guardsarm 3) now check that the run proceeds and writes the wall's own fixedValue 0, where the shipped nutUSpaldingWallFunction writes a nonzero wall nut.BRAE_CONTROL_WALL_NUT_BY_PATCH_TYPE=1.Gate: new
tests/pimple_wall_nut_vs_openfoam.sh(label slow): incompressible/pimpleFoam/RAS/pitzDaily at a fixed deltaT 1e-4, three steps from rest, every solve tight. lowerWall keeps its wall functions throughout. Every entry of p, U and the turbulence fields, and phi, at steps 1-3 within 1e-8:43ce161c)Regressions (one GH200; this branch against develop
43ce161c, built and run on the same node, one tree at a time):sa_wallfunction_refusalsandregex_patchkey_guardspass with their new arms.wallDist, so OpenFOAM stopped. The gate as committed passes, above.Not covered: the turbulentFlatPlate tutorials, whose
topWallis this case, cannot be compared on that node. Their OpenFOAM reference stops before the run.No tolerance was loosened.