141 #ifndef turbulentDFSEMInletFvPatchVectorField_H 142 #define turbulentDFSEMInletFvPatchVectorField_H 160 class turbulentDFSEMInletFvPatchVectorField
162 public fixedValueFvPatchVectorField
167 static label seedIterMax_;
170 autoPtr<PatchFunction1<vector>> U_;
173 autoPtr<PatchFunction1<symmTensor>> R_;
176 autoPtr<PatchFunction1<scalar>> L_;
200 const label nCellPerEddy_;
210 List<labelledTri> triFace_;
222 boundBox patchBounds_;
258 void writeLumleyCoeffs()
const;
261 void writeEddyOBJ()
const;
264 void initialisePatch();
267 void initialiseEddyBox();
273 void initialiseEddies();
276 void convectEddies(
const vector& UBulk,
const scalar deltaT);
283 void calcOverlappingProcEddies
372 virtual void autoMap(
const fvPatchFieldMapper& m);
391 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.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
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< fvPatchField< vector > > clone() const
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.