39 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
52 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
54 if (!isType<symmetryPlaneFvPatch>(p))
59 ) <<
"\n patch type '" << p.type()
60 <<
"' not constraint type '" << typeName <<
"'" 61 <<
"\n for patch " << p.name()
62 <<
" of field " << this->internalField().name()
63 <<
" in file " << this->internalField().objectPath()
79 symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p))
81 if (!isType<symmetryPlaneFvPatch>(this->patch()))
84 <<
"' not constraint type '" << typeName <<
"'" 85 <<
"\n for patch " << p.name()
86 <<
" of field " << this->internalField().name()
87 <<
" in file " << this->internalField().objectPath()
101 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
111 vector nHat(symmetryPlanePatch_.n());
117 *(this->patch().deltaCoeffs()/2.0);
124 if (!this->updated())
126 this->updateCoeffs();
129 vector nHat(symmetryPlanePatch_.n());
146 vector nHat(symmetryPlanePatch_.n());
150 mag(nHat.component(vector::X)),
152 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)
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
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 &)