Go to the documentation of this file.
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
371 virtual void autoMap(
const fvPatchFieldMapper& m);
390 virtual void write(Ostream&)
const;
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< scalar > scalarList
A List of scalars.
static bool checkStresses(const symmTensorField &Rf)
Return true if input Reynold stresses are valid.
A class for managing temporary objects.
virtual void write(Ostream &) const
Write.
turbulentDFSEMInletFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Vector< scalar > vector
A scalar version of the templated Vector.
virtual ~turbulentDFSEMInletFvPatchVectorField()=default
Destructor.
TypeName("turbulentDFSEMInlet")
Runtime type information.
virtual void rmap(const fvPatchVectorField &ptf, const labelList &addr)
Reverse map the given fvPatchField onto this fvPatchField.
fvPatchField< vector > fvPatchVectorField
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
List< face > faceList
A List of faces.
The turbulentDFSEMInlet is a synthesised-eddy based velocity inlet boundary condition to generate syn...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A bounding box defined in terms of min/max extrema points.
virtual void autoMap(const fvPatchFieldMapper &m)
Map (and resize as needed) from self given a mapping object.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...