60 const bool valueRequired
108 auto* patchTypeCtor = patchConstructorTable(
p.type());
120 return tmp<fvPatchField<Type>>
122 new calculatedFvPatchField<Type>
125 DimensionedField<Type, volMesh>::null()
133 template<
class Type2>
136 const fvPatchField<Type2>& pf
139 return NewCalculatedType(pf.patch());
153 <<
"cannot be called for a calculatedFvPatchField" 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." 173 <<
"cannot be called for a calculatedFvPatchField" 174 <<
"\n on patch " << this->
patch().name()
175 <<
" of field " << this->internalField().name()
176 <<
" in file " << this->internalField().objectPath()
177 <<
"\n You are probably trying to solve for a field with a " 178 "default boundary condition." 190 <<
"cannot be called for a calculatedFvPatchField" 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." 207 <<
"cannot be called for a calculatedFvPatchField" 208 <<
"\n on patch " << this->
patch().name()
209 <<
" of field " << this->internalField().name()
210 <<
" in file " << this->internalField().objectPath()
211 <<
"\n You are probably trying to solve for a field with a " 212 "default boundary condition." 223 this->writeEntry(
"value",
os);
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.
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.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
static const word & calculatedType()
The type name for calculated patch fields.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
calculatedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< fvPatchField< Type > > NewCalculatedType(const fvPatch &)
Return a pointer to a new calculatedFvPatchField created on.
const std::string patch
OpenFOAM patch number as a std::string.
A class for managing temporary objects.