57 parent_bctype(ptf,
p, iF, mapper)
59 if (!isType<wedgeFvPatch>(this->
patch()))
62 <<
"\n patch type '" << p.type()
63 <<
"' not constraint type '" <<
typeName <<
"'" 64 <<
"\n for patch " <<
p.name()
76 const DimensionedField<Type, volMesh>& iF,
77 const dictionary&
dict 80 parent_bctype(
p, iF,
dict)
82 if (!isType<wedgeFvPatch>(
p))
85 <<
"\n patch type '" <<
p.type()
86 <<
"' not constraint type '" <<
typeName <<
"'" 87 <<
"\n for patch " <<
p.name()
127 transform(refCast<const wedgeFvPatch>(this->
patch()).cellT(), pif) - pif
128 )*(0.5*this->
patch().deltaCoeffs());
135 if (!this->updated())
137 this->updateCoeffs();
144 refCast<const wedgeFvPatch>(this->
patch()).faceT(),
145 this->patchInternalField()
156 0.5*
diag(
I - refCast<const wedgeFvPatch>(this->
patch()).cellT());
const Cmpt & zz() const noexcept
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Communications types.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const fvPatch & patch() const noexcept
Return the patch.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A traits class, which is primarily used for primitives and vector-space.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
wedgeFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field.
A FieldMapper for finite-volume patch fields.
This boundary condition is similar to the cyclic condition, except that it is applied to 2-D geometri...
const Cmpt & yy() const noexcept
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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 DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
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
A class for managing temporary objects.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...