57 if (!isType<symmetryPlaneFvPatch>(this->
patch()))
60 <<
"\n patch type '" << p.type()
61 <<
"' not constraint type '" <<
typeName <<
"'" 62 <<
"\n for patch " <<
p.name()
74 const DimensionedField<Type, volMesh>& iF,
75 const dictionary&
dict 78 basicSymmetryFvPatchField<Type>(
p, iF,
dict),
79 symmetryPlanePatch_(
refCast<const symmetryPlaneFvPatch>(
p,
dict))
81 if (!isType<symmetryPlaneFvPatch>(
p))
84 <<
"\n patch type '" <<
p.type()
85 <<
"' not constraint type '" <<
typeName <<
"'" 86 <<
"\n for patch " <<
p.name()
97 const symmetryPlaneFvPatchField<Type>& ptf
101 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
113 symmetryPlanePatch_(ptf.symmetryPlanePatch_)
123 vector nHat(symmetryPlanePatch_.n());
129 *(this->
patch().deltaCoeffs()/2.0);
136 if (!this->updated())
138 this->updateCoeffs();
141 vector nHat(symmetryPlanePatch_.n());
143 const Field<Type> iF(this->patchInternalField());
158 vector nHat(symmetryPlanePatch_.n());
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A symmetry patch. The "value" entry is NO_READ, NO_WRITE.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field, sets updated() to false.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A traits class, which is primarily used for primitives and vector-space.
symmetryPlaneFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
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.
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 > &)
friend Ostream & operator(Ostream &, const Field< Type > &)
static const Identity< scalar > I
Generic templated field type.
A FieldMapper for finite-volume patch fields.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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.
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 ...
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 ...