mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: template invariant base classes for {fa,fae,fv,fvs,point}PatchField
- simplifies construction/inheritance
ENH: add {fa,fv}PatchField::zeroGradientType() static
- can be used to avoid literal "zeroGradient" in places
STYLE: adjust naming of pointPatch runtime selection table
- simply use 'patch' as per fa/fv fields
STYLE: add zero-size guard to patch constraintType(const word&)
This commit is contained in:
@ -41,7 +41,7 @@ cellZoneID
|
||||
fieldName,
|
||||
mesh,
|
||||
dimless,
|
||||
zeroGradientFvPatchField<scalar>::typeName
|
||||
fvPatchScalarField::zeroGradientType()
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ relVelocity
|
||||
"relVelocity",
|
||||
mesh(),
|
||||
dimensionedVector(dimVelocity, Zero),
|
||||
"zeroGradient"
|
||||
fvPatchVectorField::zeroGradientType()
|
||||
);
|
||||
auto& relVel = trelVel.ref();
|
||||
auto& relVelField = relVel.primitiveFieldRef();
|
||||
|
||||
Reference in New Issue
Block a user