99 auto* patchTypeCtor = patchConstructorTable(
p.type());
111 return tmp<faPatchField<Type>>
113 new calculatedFaPatchField<Type>
116 DimensionedField<Type, areaMesh>::null()
124template<
class AnyType>
128 const faPatchField<AnyType>& pf
131 return NewCalculatedType(pf.patch());
145 <<
"valueInternalCoeffs cannot be called for a calculatedFaPatchField"
146 <<
"\n on patch " << this->patch().name()
147 <<
" of field " << this->internalField().name()
148 <<
" in file " << this->internalField().objectPath()
149 <<
"\n You are probably trying to solve for a field with a "
150 "default boundary condition."
165 <<
"valueBoundaryCoeffs cannot be called for a calculatedFaPatchField"
166 <<
"\n on patch " << this->patch().name()
167 <<
" of field " << this->internalField().name()
168 <<
" in file " << this->internalField().objectPath()
169 <<
"\n You are probably trying to solve for a field with a "
170 "default boundary condition."
182 <<
"gradientInternalCoeffs cannot be called for a "
183 "calculatedFaPatchField"
184 <<
"\n on patch " << this->patch().name()
185 <<
" of field " << this->internalField().name()
186 <<
" in file " << this->internalField().objectPath()
187 <<
"\n You are probably trying to solve for a field with a "
188 "default boundary condition."
201 "gradientBoundaryCoeffs cannot be called for a "
202 "calculatedFaPatchField"
203 <<
"\n on patch " << this->patch().name()
204 <<
" of field " << this->internalField().name()
205 <<
" in file " << this->internalField().objectPath()
206 <<
"\n You are probably trying to solve for a field with a "
207 "default boundary condition."
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static const this_type & null() noexcept
Return a null DimensionedField (reference to a nullObject).
readOption
Enumeration defining read preferences.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
virtual void write(Ostream &) const
Write.
tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
calculatedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const faPatch & patch() const noexcept
Return the patch.
A FieldMapper for finite-area patch fields.
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
static tmp< faPatchField< Type > > NewCalculatedType(const faPatch &p)
Return a pointer to a new calculatedFaPatchField created on freestore without setting patchField valu...
virtual void write(Ostream &os) const
Write.
const DimensionedField< Type, areaMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)