58 if (!isType<wedgeFaPatch>(this->
patch()))
61 <<
"Field type does not correspond to patch type for patch "
64 <<
"Patch type: " << this->
patch().type()
80 if (!isType<wedgeFaPatch>(
p))
83 <<
"patch " << this->
patch().
index() <<
" not wedge type. "
84 <<
"Patch type = " << p.type()
108 const Field<Type> pif (this->patchInternalField());
112 transform(refCast<const wedgeFaPatch>(this->patch()).faceT(), pif)
114 )*(0.5*this->patch().deltaCoeffs());
121 if (!this->updated())
123 this->updateCoeffs();
130 refCast<const wedgeFaPatch>(this->patch()).edgeT(),
131 this->patchInternalField()
142 0.5*
diag(
I - refCast<const wedgeFaPatch>(this->patch()).faceT());
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const char *const typeName
Typename for Field.
Generic templated field type.
void evaluate()
Evaluate boundary conditions.
commsTypes
Types of communications.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-area patch fields.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
const faPatch & patch() const
Return patch.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
A traits class, which is primarily used for primitives.
label index() const noexcept
The index of this patch in the boundaryMesh.
A class for managing temporary objects.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
static const Identity< scalar > I
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)