Go to the documentation of this file.
58 if (!isType<wedgeFaPatch>(this->
patch()))
61 <<
"Field type does not correspond to patch type for patch "
63 <<
"Field type: " << typeName <<
endl
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());
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
A class for managing temporary objects.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Generic templated field type.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
wedgeFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
Traits class for primitives.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...