43 fixedGradientFvPatchScalarField(
p, iF),
55 fixedGradientFvPatchScalarField(
p, iF),
83 fixedGradientFvPatchScalarField(
p, iF),
86 patchType() = ptf.patchType();
90 gradient().map(ptf.gradient(), mapper);
105 + gradient()*(patch().nf() & patch().delta())
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."
176 fixedGradientFvPatchScalarField::write(
os);
177 writeEntry(
"value",
os);
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...
friend Ostream & operator(Ostream &, const Field< scalar > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
This boundary condition sets the pressure gradient to the provided value such that the flux on the bo...
virtual void updateCoeffs()
Update the patch pressure gradient field.
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
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.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
errorManipArg< error, int > exit(error &err, const int errNo=1)