41 fixedGradientFvPatchScalarField(
p, iF,
dict, false),
44 if (
dict.found(
"value") &&
dict.found(
"gradient"))
69 fixedGradientFvPatchScalarField(ptf,
p, iF, mapper, false),
72 map(refCast<const fixedFluxPressureFvPatchScalarField>(ptf), mapper);
82 fixedGradientFvPatchScalarField(wbppsf, iF),
95 mapper(*
this, ptf, [&](){
return patchInternalField(); });
96 mapper(gradient(), ptf.gradient(), scalar(0));
106 map(refCast<const fixedFluxPressureFvPatchScalarField>(ptf), mapper);
120 curTimeIndex_ = this->db().time().timeIndex();
122 gradient() = snGradp;
123 fixedGradientFvPatchScalarField::updateCoeffs();
134 if (curTimeIndex_ != this->db().time().
timeIndex())
137 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before"
138 " updateCoeffs() or evaluate() to set the boundary gradient."
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
virtual void write(Ostream &) const
Write.
void map(const fixedFluxPressureFvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the patch pressure gradient field.
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)