49 inletOutletFvPatchScalarField(
p, iF),
62 inletOutletFvPatchScalarField(
p, iF),
65 phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
67 refValue() =
k(patch().Cf());
86 const atmBoundaryLayerInletKFvPatchScalarField& psf,
88 const DimensionedField<scalar, volMesh>& iF,
89 const fvPatchFieldMapper& mapper
92 inletOutletFvPatchScalarField(psf,
p, iF, mapper),
104 inletOutletFvPatchScalarField(psf, iF),
118 refValue() =
k(patch().Cf());
120 inletOutletFvPatchScalarField::updateCoeffs();
129 inletOutletFvPatchScalarField::autoMap(m);
140 inletOutletFvPatchScalarField::rmap(psf, addr);
152 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
163 atmBoundaryLayerInletKFvPatchScalarField
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...
void operator=(const Field< scalar > &)
@ MUST_READ
Reading required.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
This boundary condition provides a log-law type ground-normal inlet boundary condition for the turbul...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
atmBoundaryLayerInletKFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Base class to set log-law type ground-normal inlet boundary conditions for wind velocity and turbulen...
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
bool initABL_
Flag to initialise profiles with the theoretical ABL expressions, otherwise initialises by using "val...
void write(Ostream &) const
Write.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
atmBoundaryLayer(const Time &time, const polyPatch &pp)
Construct null from time.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
List< label > labelList
A List of labels.
fvPatchField< scalar > fvPatchScalarField