48 inletOutletFvPatchScalarField(
p, iF),
61 inletOutletFvPatchScalarField(
p, iF),
64 phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
85 const atmBoundaryLayerInletOmegaFvPatchScalarField& psf,
87 const DimensionedField<scalar, volMesh>& iF,
88 const fvPatchFieldMapper& mapper
91 inletOutletFvPatchScalarField(psf,
p, iF, mapper),
103 inletOutletFvPatchScalarField(psf, iF),
119 inletOutletFvPatchScalarField::updateCoeffs();
128 inletOutletFvPatchScalarField::autoMap(m);
139 inletOutletFvPatchScalarField::rmap(psf, addr);
142 refCast<const atmBoundaryLayerInletOmegaFvPatchScalarField>(psf);
151 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
153 writeEntry(
"value",
os);
162 atmBoundaryLayerInletOmegaFvPatchScalarField
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.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
tmp< scalarField > omega(const vectorField &pCf) const
Return the specific dissipation rate distribution for the ATM.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void write(Ostream &) const
Write.
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< scalar > &)
Copy assignment.
atmBoundaryLayerInletOmegaFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const Time & time() const
Return Time associated with the objectRegistry.
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.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)