43 fixedGradientFvPatchScalarField(
p, iF),
55 fixedGradientFvPatchScalarField(
p, iF),
59 if (
dict.found(
"value") &&
dict.found(
"gradient"))
77 const fixedFluxPressureFvPatchScalarField& ptf,
79 const DimensionedField<scalar, volMesh>& iF,
80 const fvPatchFieldMapper& mapper
83 fixedGradientFvPatchScalarField(
p, iF),
86 patchType() = ptf.patchType();
90 gradient().map(ptf.gradient(), mapper);
112 this->map(ptf, mapper);
119 const fixedFluxPressureFvPatchScalarField& wbppsf
122 fixedGradientFvPatchScalarField(wbppsf),
133 fixedGradientFvPatchScalarField(wbppsf, iF),
150 curTimeIndex_ = this->db().time().timeIndex();
152 gradient() = snGradp;
153 fixedGradientFvPatchScalarField::updateCoeffs();
164 if (curTimeIndex_ != this->db().time().
timeIndex())
167 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before" 168 " updateCoeffs() or evaluate() to set the boundary gradient." 177 writeEntry(
"value",
os);
188 fixedFluxPressureFvPatchScalarField
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
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...
Macros for easy insertion into run-time selection tables.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
friend Ostream & operator(Ostream &, const Field< scalar > &)
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Write.
A class for handling words, derived from Foam::string.
virtual void updateCoeffs()
Update the patch pressure gradient field.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const word null
An empty word.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
OBJstream os(runTime.globalPath()/outputName)
fixedFluxPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.