Velocity boundary condition including synthesised eddies for use with LES and DES turbulent flows. More...
Public Member Functions | |
TypeName ("turbulentDFSEMInlet") | |
Runtime type information. More... | |
turbulentDFSEMInletFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
turbulentDFSEMInletFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
turbulentDFSEMInletFvPatchVectorField (const turbulentDFSEMInletFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
turbulentDFSEMInletFvPatchVectorField (const turbulentDFSEMInletFvPatchVectorField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
turbulentDFSEMInletFvPatchVectorField (const turbulentDFSEMInletFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual | ~turbulentDFSEMInletFvPatchVectorField ()=default |
Destructor. More... | |
virtual void | autoMap (const fvPatchFieldMapper &m) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchVectorField &ptf, const labelList &addr) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateOrRead (const word &fieldName, const dictionary &dict, bool &interpolateField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolateBoundaryData (const word &fieldName) const |
Static Public Member Functions | |
static bool | checkStresses (const symmTensorField &Rf) |
Helper function to check that Reynold stresses are valid. More... | |
Velocity boundary condition including synthesised eddies for use with LES and DES turbulent flows.
Poletto, R., Craft, T., & Revell, A. (2013). A new divergence free synthetic eddy method for the reproduction of inlet flow conditions for LES. Flow, turbulence and combustion, 91(3), 519-539. DOI:10.1007/s10494-013-9488-2
Reynolds stress, velocity and turbulence length scale values can either be specified directly, or mapped. If mapping, the values should be entered in the same form as the timeVaryingMappedFixedValue
condition, except that no interpolation in time is supported. These should be located in the directory:
\$FOAM_CASE/constant/boundaryData/\<patchName\>/points \$FOAM_CASE/constant/boundaryData/\<patchName\>/0/\{R|U|L\}
Property | Description | Required | Default value |
---|---|---|---|
value | Restart value | yes | |
delta | Local limiting length scale | yes | |
R | Reynolds stress field | no | |
U | Velocity field | no | |
L | Turbulence length scale field | no | |
d | Eddy density (fill fraction) | no | 1 |
kappa | Von Karman constant | no | 0.41 |
mapMethod | Method to map reference values | no | nearestCell |
perturb | Point perturbation for interpolation | no | 1e-5 |
interpolateR | Flag to interpolate the R field | no | false |
interpolateL | Flag to interpolate the L field | no | false |
interpolateU | Flag to interpolate the U field | no | false |
writeEddies | Flag to write eddies as OBJ file | no | no |
delta
value typically represents the characteristic scale of flow or flow domain, e.g. a channel half-heightR
, U
and L
specification: if the entry is not user input, it is assumed that the data will be mappedDefinition at line 179 of file turbulentDFSEMInletFvPatchVectorField.H.
turbulentDFSEMInletFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 735 of file turbulentDFSEMInletFvPatchVectorField.C.
Referenced by turbulentDFSEMInletFvPatchVectorField::clone().
turbulentDFSEMInletFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 825 of file turbulentDFSEMInletFvPatchVectorField.C.
References Foam::expressions::patchExpr::debug, eddy::debug, Foam::gSum(), and Foam::foamVersion::patch.
turbulentDFSEMInletFvPatchVectorField | ( | const turbulentDFSEMInletFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given turbulentDFSEMInletFvPatchVectorField onto a new patch
Definition at line 779 of file turbulentDFSEMInletFvPatchVectorField.C.
Construct as copy.
Definition at line 877 of file turbulentDFSEMInletFvPatchVectorField.C.
turbulentDFSEMInletFvPatchVectorField | ( | const turbulentDFSEMInletFvPatchVectorField & | ptf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 920 of file turbulentDFSEMInletFvPatchVectorField.C.
|
virtualdefault |
Destructor.
TypeName | ( | "turbulentDFSEMInlet" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 383 of file turbulentDFSEMInletFvPatchVectorField.H.
References turbulentDFSEMInletFvPatchVectorField::turbulentDFSEMInletFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 400 of file turbulentDFSEMInletFvPatchVectorField.H.
References turbulentDFSEMInletFvPatchVectorField::turbulentDFSEMInletFvPatchVectorField().
|
static |
Helper function to check that Reynold stresses are valid.
Definition at line 965 of file turbulentDFSEMInletFvPatchVectorField.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, R, Foam::sqr(), and Foam::sqrt().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 1033 of file turbulentDFSEMInletFvPatchVectorField.C.
References fvPatchField< Type >::autoMap().
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 1050 of file turbulentDFSEMInletFvPatchVectorField.C.
References fvPatchField< Type >::rmap().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 1071 of file turbulentDFSEMInletFvPatchVectorField.C.
References Foam::constant::universal::c, Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, n, UPstream::nProcs(), UPstream::parRun(), Foam::foamVersion::patch, Foam::returnReduce(), Foam::sqrt(), timeIndex, and U.
|
virtual |
Write.
Definition at line 1183 of file turbulentDFSEMInletFvPatchVectorField.C.
References Foam::constant::electromagnetic::e, fvPatchField< Type >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Foam::tmp<Foam::Field<Type> > interpolateOrRead | ( | const word & | fieldName, |
const dictionary & | dict, | ||
bool & | interpolateField | ||
) | const |
Definition at line 38 of file turbulentDFSEMInletFvPatchVectorFieldTemplates.C.
References dict, and Foam::foamVersion::patch.
Foam::tmp<Foam::Field<Type> > interpolateBoundaryData | ( | const word & | fieldName | ) | const |
Definition at line 70 of file turbulentDFSEMInletFvPatchVectorFieldTemplates.C.
References Foam::endl(), Foam::Info, and Foam::foamVersion::patch.