49 inletOutletFvPatchVectorField(
p, iF),
62 inletOutletFvPatchVectorField(
p, iF),
65 phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
67 refValue() =
U(
patch().Cf());
86 const atmBoundaryLayerInletVelocityFvPatchVectorField& pvf,
88 const DimensionedField<vector, volMesh>& iF,
89 const fvPatchFieldMapper& mapper
92 inletOutletFvPatchVectorField(pvf,
p, iF, mapper),
104 inletOutletFvPatchVectorField(pvf, iF),
120 inletOutletFvPatchVectorField::updateCoeffs();
129 inletOutletFvPatchVectorField::autoMap(m);
140 inletOutletFvPatchVectorField::rmap(pvf, addr);
143 refCast<const atmBoundaryLayerInletVelocityFvPatchVectorField>(pvf);
152 os.writeEntryIfDifferent<
word>(
"phi",
"phi", phiName_);
163 atmBoundaryLayerInletVelocityFvPatchVectorField
Base class to set log-law type ground-normal inlet boundary conditions for wind velocity and turbulen...
fvPatchField< vector > fvPatchVectorField
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.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from Foam::string.
tmp< vectorField > U(const vectorField &pCf) const
Return the velocity distribution for the ATM.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< vector > &)
Copy assignment.
atmBoundaryLayerInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
This boundary condition provides a log-law type ground-normal inlet boundary condition for the stream...
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 updateCoeffs()
Update the coefficients associated with the patch field.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)