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:
Mark Olesen
2022-09-19 14:05:50 +02:00
parent 88f5be479e
commit 4393ffa8dc
54 changed files with 1528 additions and 725 deletions

View File

@ -27,6 +27,15 @@ License
#include "zeroGradientPointPatchField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type>
const Foam::word& Foam::pointPatchField<Type>::zeroGradientType()
{
return Foam::zeroGradientPointPatchField<Type>::typeName;
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>