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),
120 inletOutletFvPatchScalarField::updateCoeffs();
129 inletOutletFvPatchScalarField::autoMap(m);
140 inletOutletFvPatchScalarField::rmap(psf, addr);
143 refCast<const atmBoundaryLayerInletKFvPatchScalarField>(psf);
152 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
163 atmBoundaryLayerInletKFvPatchScalarField
Base class to set log-law type ground-normal inlet boundary conditions for wind velocity and turbulen...
tmp< scalarField > k(const vectorField &pCf) const
Return the turbulent kinetic energy distribution for the ATM.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
This boundary condition provides a log-law type ground-normal inlet boundary condition for the turbul...
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...
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
void write(Ostream &) const
Write.
bool initABL_
Flag to initialise profiles with the theoretical ABL expressions, otherwise initialises by using "val...
const Time & time() const noexcept
Return Time associated with the objectRegistry.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< scalar > &)
Copy assignment.
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.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
atmBoundaryLayerInletKFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.