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>())
82 if (!isA<emptyFaPatch>(
p))
85 <<
"\n patch type '" <<
p.type()
86 <<
"' not constraint type '" <<
typeName <<
"'" 87 <<
"\n for patch " <<
p.name()
98 const emptyFaPatchField<Type>& ptf,
99 const DimensionedField<Type, areaMesh>& iF
121 if (this->internalField().
mesh().nFaces())
126 % this->internalField().
mesh().nFaces()
130 <<
"This mesh contains patches of type empty but is " 131 <<
"not 1D or 2D by virtue of the fact that the number of " 132 <<
"faces of this empty patch is not divisible by the number " virtual void write(Ostream &) const
Write without "value" entry!
virtual void write(Ostream &os) const
Write.
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.
OBJstream os(runTime.globalPath()/outputName)
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 ...