flowRateInletVelocity: Map wall distance on decompose, rather than recompute

A wall distance computation will not be correct on a disconnected
processor case. This is also more efficient.

Resolves bug report https://bugs.openfoam.org/view.php?id=3833
This commit is contained in:
Will Bainbridge
2022-05-03 12:24:11 +01:00
parent 00777cffa4
commit 38262243cc

View File

@ -208,10 +208,10 @@ flowRateInletVelocityFvPatchVectorField
volumetric_(ptf.volumetric_),
rhoName_(ptf.rhoName_),
rhoInlet_(ptf.rhoInlet_),
alphaName_(ptf.alphaName_)
{
setWallDist();
}
alphaName_(ptf.alphaName_),
y_(mapper(ptf.y_)),
area_(ptf.area_)
{}
Foam::flowRateInletVelocityFvPatchVectorField::