39 template<
class BasicMomentumTransportModel>
45 return dev(
symm(gradU & gradU));
49 template<
class BasicMomentumTransportModel>
67 +
pow(magSqrSd, 5.0/4.0)
81 template<
class BasicMomentumTransportModel>
85 this->nut_.correctBoundaryConditions();
92 template<
class BasicMomentumTransportModel>
100 const viscosity& viscosity,
135 if (type == typeName)
137 this->printCoeffs(type);
144 template<
class BasicMomentumTransportModel>
149 Ck_.readIfPresent(this->coeffDict());
150 Cw_.readIfPresent(this->coeffDict());
161 template<
class BasicMomentumTransportModel>
174 template<
class BasicMomentumTransportModel>
virtual bool read()
Read model coefficients if they have changed.
Eddy viscosity LES SGS model base class.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicMomentumTransportModel::rhoField rhoField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual tmp< volScalarField > epsilon() const
Return sub-grid disipation rate.
dimensionedScalar sqrt(const dimensionedScalar &ds)
label k
Boltzmann constant.
Generic dimensioned Type class.
virtual void correctNut()
Update the SGS eddy-viscosity.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
Dimension set for the base types.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
tmp< volSymmTensorField > Sd(const volTensorField &gradU) const
Return the deviatoric symmetric part of the square of the given.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.schemes().setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
WALE(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
BasicMomentumTransportModel::alphaField alphaField
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual void correct()
Correct Eddy-Viscosity and related properties.
A class for managing temporary objects.
virtual tmp< volScalarField > k() const
Return SGS kinetic energy.