40 fixedGradientFvPatchScalarField(p, iF),
52 fixedGradientFvPatchScalarField(p, iF),
55 if (dict.
found(
"value") && dict.
found(
"gradient"))
79 fixedGradientFvPatchScalarField(p, iF),
82 patchType() = ptf.patchType();
86 gradient().map(ptf.gradient(), mapper);
91 scalarField::operator=
96 patchInternalField() + gradient()*(patch().nf() & patch().delta())
103 this->map(ptf, mapper);
113 fixedGradientFvPatchScalarField(wbppsf),
124 fixedGradientFvPatchScalarField(wbppsf, iF),
141 curTimeIndex_ = this->db().time().timeIndex();
143 gradient() = snGradp;
144 fixedGradientFvPatchScalarField::updateCoeffs();
155 if (curTimeIndex_ != this->db().time().
timeIndex())
158 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before" 159 " updateCoeffs() or evaluate() to set the boundary gradient." 168 writeEntry(
"value", os);
virtual void write(Ostream &) const
Write.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
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...
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the patch pressure gradient field.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, 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...