50 inletOutletFvPatchScalarField(
p, iF),
63 inletOutletFvPatchScalarField(
p, iF),
66 phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
87 const atmBoundaryLayerInletEpsilonFvPatchScalarField& psf,
89 const DimensionedField<scalar, volMesh>& iF,
90 const fvPatchFieldMapper& mapper
93 inletOutletFvPatchScalarField(psf,
p, iF, mapper),
105 inletOutletFvPatchScalarField(psf, iF),
121 inletOutletFvPatchScalarField::updateCoeffs();
130 inletOutletFvPatchScalarField::autoMap(m);
141 inletOutletFvPatchScalarField::rmap(psf, addr);
144 refCast<const atmBoundaryLayerInletEpsilonFvPatchScalarField>(psf);
153 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
155 writeEntry(
"value",
os);
164 atmBoundaryLayerInletEpsilonFvPatchScalarField
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...
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...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Macros for easy insertion into run-time selection tables.
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...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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.
This boundary condition provides a log-law type ground-normal inlet boundary condition for the turbul...
const Time & time() const
Return Time associated with the objectRegistry.
tmp< scalarField > epsilon(const vectorField &pCf) const
Return the turbulent dissipation rate distribution for the ATM.
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 write(Ostream &) const
Write.
atmBoundaryLayerInletEpsilonFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)