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),
118 refValue() =
U(
patch().Cf());
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
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< vector > &)
Copy assignment.
@ 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 stream...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
atmBoundaryLayerInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal 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.
tmp< vectorField > U(const vectorField &pCf) const
Return the velocity distribution for the ATM.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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)
const std::string patch
OpenFOAM patch number as a std::string.
static constexpr const zero Zero
Global zero (0)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
fvPatchField< vector > fvPatchVectorField