56 if (!isType<emptyFaPatch>(
p))
59 <<
"\n patch type '" <<
p.type()
60 <<
"' not constraint type '" <<
typeName <<
"'" 61 <<
"\n for patch " <<
p.name()
73 const DimensionedField<Type, areaMesh>& iF,
74 const dictionary&
dict 77 faPatchField<Type>(
p, iF, Field<Type>())
79 if (!isA<emptyFaPatch>(
p))
82 <<
"\n patch type '" <<
p.type()
83 <<
"' not constraint type '" <<
typeName <<
"'" 84 <<
"\n for patch " <<
p.name()
95 const emptyFaPatchField<Type>& ptf
118 if (this->internalField().
mesh().nFaces())
123 % this->internalField().
mesh().nFaces()
127 <<
"This mesh contains patches of type empty but is " 128 <<
"not 1D or 2D by virtue of the fact that the number of " 129 <<
"faces of this empty patch is not divisible by the number "
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void updateCoeffs()
Update the coefficients associated with the patch field.
const DimensionedField< Type, areaMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
static const char *const typeName
Typename for Field.
emptyFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
Generic templated field type.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
A FieldMapper for finite-area patch fields.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...