93 template<
class AnyType>
99 auto* patchTypeCtor = patchConstructorTable(pf.
patch().type());
111 return tmp<faPatchField<Type>>
113 new calculatedFaPatchField<Type>
116 DimensionedField<Type, areaMesh>::null()
133 <<
"valueInternalCoeffs cannot be called for a calculatedFaPatchField" 134 <<
"\n on patch " << this->
patch().name()
135 <<
" of field " << this->internalField().name()
136 <<
" in file " << this->internalField().objectPath()
137 <<
"\n You are probably trying to solve for a field with a " 138 "default boundary condition." 153 <<
"valueBoundaryCoeffs cannot be called for a calculatedFaPatchField" 154 <<
"\n on patch " << this->
patch().name()
155 <<
" of field " << this->internalField().name()
156 <<
" in file " << this->internalField().objectPath()
157 <<
"\n You are probably trying to solve for a field with a " 158 "default boundary condition." 170 <<
"gradientInternalCoeffs cannot be called for a " 171 "calculatedFaPatchField" 172 <<
"\n on patch " << this->
patch().name()
173 <<
" of field " << this->internalField().name()
174 <<
" in file " << this->internalField().objectPath()
175 <<
"\n You are probably trying to solve for a field with a " 176 "default boundary condition." 189 "gradientBoundaryCoeffs cannot be called for a " 190 "calculatedFaPatchField" 191 <<
"\n on patch " << this->
patch().name()
192 <<
" of field " << this->internalField().name()
193 <<
" in file " << this->internalField().objectPath()
194 <<
"\n You are probably trying to solve for a field with a " 195 "default boundary condition."
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
const faPatch & patch() const noexcept
Return the patch.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
static tmp< faPatchField< Type > > NewCalculatedType(const faPatchField< AnyType > &pf)
Return a pointer to a new calculatedFaPatchField created on freestore without setting patchField valu...
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
calculatedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
OBJstream os(runTime.globalPath()/outputName)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
A class for managing temporary objects.
A FieldMapper for finite-area patch fields.
readOption
Enumeration defining read preferences.