40 template<
class BasicMomentumTransportModel>
75 this->printCoeffs(type);
82 template<
class BasicMomentumTransportModel>
87 Cg_.readIfPresent(this->coeffDict());
98 template<
class BasicMomentumTransportModel>
103 this->mesh_.objectRegistry::template
104 lookupObject<uniformDimensionedVectorField>(
"g");
107 (Cg_*this->Cmu_)*this->alpha_*this->k_*(g &
fvc::grad(this->rho_))
108 /(this->epsilon_ + this->epsilonMin_);
112 template<
class BasicMomentumTransportModel>
117 this->mesh_.objectRegistry::template
118 lookupObject<uniformDimensionedVectorField>(
"g");
131 template<
class BasicMomentumTransportModel>
136 this->mesh_.objectRegistry::template
137 lookupObject<uniformDimensionedVectorField>(
"g");
146 mag(this->U_ - gHat*v)
tmp< volScalarField > Gcoef() const
virtual tmp< fvScalarMatrix > epsilonSource() const
dimensionedScalar tanh(const dimensionedScalar &ds)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
virtual tmp< fvScalarMatrix > kSource() const
virtual tmp< fvScalarMatrix > epsilonSource() const
Generic dimensioned Type class.
virtual tmp< fvScalarMatrix > kSource() const
Macros for easy insertion into run-time selection tables.
virtual bool read()
Re-read model coefficients if they have changed.
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
Calculate the gradient of the given field.
A class for handling words, derived from string.
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))
const Type & value() const
Return const reference to value.
buoyantKEpsilon(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.
const dimensionSet dimVelocity
Abstract base class for all fluid physical properties.
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.
dimensioned< scalar > mag(const dimensioned< Type > &)
BasicMomentumTransportModel::rhoField rhoField
A class for managing temporary objects.
const dimensionedVector & g
BasicMomentumTransportModel::alphaField alphaField