58 if (!isType<wedgeFaPatch>(this->
patch()))
61 <<
"Field type does not correspond to patch type for patch " 64 <<
"Patch type: " << this->
patch().type()
74 const DimensionedField<Type, areaMesh>& iF,
75 const dictionary&
dict 78 transformFaPatchField<Type>(
p, iF,
dict)
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());
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());
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
const faPatch & patch() const noexcept
The associated objectRegistry.
const Cmpt & zz() const noexcept
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Types of communications.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
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.
friend Ostream & operator(Ostream &, const faPatchField< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A traits class, which is primarily used for primitives.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
static const char *const typeName
Typename for Field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
static const Identity< scalar > I
Generic templated field type.
wedgeFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
const Cmpt & yy() const noexcept
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
#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 class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const Cmpt & xx() const noexcept
label index() const noexcept
The index of this patch in the boundaryMesh.
A class for managing temporary objects.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
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 ...