Go to the documentation of this file.
43 fixedGradientFvPatchScalarField(
p, iF),
55 fixedGradientFvPatchScalarField(
p, iF),
58 patchType() =
dict.getOrDefault<
word>(
"patchType", word::null);
59 if (
dict.found(
"value") &&
dict.found(
"gradient"))
83 fixedGradientFvPatchScalarField(
p, iF),
86 patchType() = ptf.patchType();
90 gradient().map(ptf.gradient(), mapper);
99 scalarField::operator=
112 this->map(ptf, mapper);
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);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
virtual void updateCoeffs()
Update the patch pressure gradient field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
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 write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
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...