wallDist: Changed from TopoChangeableMeshObject to DeletableMeshObject

The nearWallDist MeshObject is now deleted on mesh-change rather than updated
which is more efficient for cases with multiple mesh changes, e.g. motion,
stitching and mapping by avoiding unnecessary updates.

As a consequence of this change the wallDist::y() volScalarField reference
should not be cached across mesh changes so the turbulence models now obtain the
y field as required from the new momentumTransportModel::y() function, the
original near-wall distance function is now named momentumTransportModel::yb()
to clarify that it is the wall distance of the boundary cells.
This commit is contained in:
Henry Weller
2023-12-01 16:30:01 +00:00
parent 6fec3e009c
commit 71493091de
37 changed files with 101 additions and 179 deletions

View File

@ -244,7 +244,7 @@ struct alphatWallBoilingWallFunctionFvPatchScalarField::boilingLiquidProperties
(
pow025(nutw.Cmu())
*sqrt(ttm.momentumTransport().k()().boundaryField()[patchi()])
*ttm.momentumTransport().y()[patchi()]
*ttm.momentumTransport().yb()[patchi()]
/nuw
),
P