99 auto* patchTypeCtor = patchConstructorTable(
p.type());
111 return tmp<fvPatchField<Type>>
113 new calculatedFvPatchField<Type>
116 DimensionedField<Type, volMesh>::null()
124template<
class AnyType>
128 const fvPatchField<AnyType>& pf
131 return NewCalculatedType(pf.patch());
145 <<
"cannot be called for a calculatedFvPatchField"
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 <<
"cannot be called for a calculatedFvPatchField"
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 <<
"cannot be called for a calculatedFvPatchField"
183 <<
"\n on patch " << this->patch().name()
184 <<
" of field " << this->internalField().name()
185 <<
" in file " << this->internalField().objectPath()
186 <<
"\n You are probably trying to solve for a field with a "
187 "default boundary condition."
199 <<
"cannot be called for a calculatedFvPatchField"
200 <<
"\n on patch " << this->patch().name()
201 <<
" of field " << this->internalField().name()
202 <<
" in file " << this->internalField().objectPath()
203 <<
"\n You are probably trying to solve for a field with a "
204 "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,...
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
calculatedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write includes "value" entry.
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.
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 fvPatch & patch() const noexcept
Return the patch.
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &p)
Return a pointer to a new calculatedFvPatchField created on.
const DimensionedField< Type, volMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
fvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...