141 #ifndef turbulentDFSEMInletFvPatchVectorField_H 142 #define turbulentDFSEMInletFvPatchVectorField_H 159 class turbulentDFSEMInletFvPatchVectorField
161 public fixedValueFvPatchVectorField
166 static label seedIterMax_;
169 autoPtr<PatchFunction1<vector>> U_;
172 autoPtr<PatchFunction1<symmTensor>> R_;
175 autoPtr<PatchFunction1<scalar>> L_;
199 const label nCellPerEddy_;
223 boundBox patchBounds_;
259 void writeLumleyCoeffs()
const;
262 void writeEddyOBJ()
const;
265 void initialisePatch();
268 void initialiseEddyBox();
274 void initialiseEddies();
277 void convectEddies(
const vector& UBulk,
const scalar deltaT);
284 void calcOverlappingProcEddies
379 virtual void autoMap(
const fvPatchFieldMapper& m);
398 virtual void write(Ostream&)
const;
List< scalar > scalarList
List of scalar.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
fvPatchField< vector > fvPatchVectorField
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
TypeName("turbulentDFSEMInlet")
Runtime type information.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This class describes the interaction of an object (often a face) and a point. It carries the info of ...
virtual void rmap(const fvPatchVectorField &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
List< face > faceList
List of faces.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
The turbulentDFSEMInlet is a synthesised-eddy based velocity inlet boundary condition to generate syn...
turbulentDFSEMInletFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
#define R(A, B, C, D, E, F, K, M)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
List< label > labelList
A List of labels.
A class for managing temporary objects.
static void checkStresses(const symmTensorField &R)
Check if input Reynolds stresses are valid.
virtual ~turbulentDFSEMInletFvPatchVectorField()=default
Destructor.
virtual void write(Ostream &) const
Write.