39 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
53 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
55 if (!isType<symmetryPlaneFvPatch>(this->patch()))
58 <<
"' not constraint type '" << typeName <<
"'" 59 <<
"\n for patch " << p.name()
60 <<
" of field " << this->internalField().name()
61 <<
" in file " << this->internalField().objectPath()
76 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
78 if (!isType<symmetryPlaneFvPatch>(p))
83 ) <<
"\n patch type '" << p.type()
84 <<
"' not constraint type '" << typeName <<
"'" 85 <<
"\n for patch " << p.name()
86 <<
" of field " << this->internalField().name()
87 <<
" in file " << this->internalField().objectPath()
100 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
112 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
122 vector nHat(symmetryPlanePatch_.n());
128 *(this->patch().deltaCoeffs()/2.0);
135 if (!this->updated())
137 this->updateCoeffs();
140 vector nHat(symmetryPlanePatch_.n());
157 vector nHat(symmetryPlanePatch_.n());
161 mag(nHat.component(vector::X)),
163 mag(nHat.component(vector::Z))
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
commsTypes
Types of communications.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Traits class for primitives.
symmetryPlaneFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
static const Identity< scalar > I
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
This boundary condition enforces a symmetryPlane constraint.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
PtrList< volScalarField > & Y
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
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 used to avoid unnecessary manipulations for objects that are kn...
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
dimensionSet transform(const dimensionSet &)