141#ifndef turbulentDFSEMInletFvPatchVectorField_H
142#define turbulentDFSEMInletFvPatchVectorField_H
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;
#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...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bounding box defined in terms of min/max extrema points.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for managing temporary objects.
The turbulentDFSEMInlet is a synthesised-eddy based velocity inlet boundary condition to generate syn...
static void checkStresses(const symmTensorField &R)
Check if input Reynolds stresses are valid.
virtual void rmap(const fvPatchVectorField &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
turbulentDFSEMInletFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
virtual ~turbulentDFSEMInletFvPatchVectorField()=default
Destructor.
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< fvPatchField< vector > > clone(const DimensionedField< vector, volMesh > &iF) const
Clone with an internal field reference.
TypeName("turbulentDFSEMInlet")
Runtime type information.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
vector point
Point is a vector.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.
List< scalar > scalarList
List of scalar.
fvPatchField< vector > fvPatchVectorField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.