37 template<
class BasicMomentumTransportModel>
38 tmp<volScalarField::Internal>
41 return sqrt(this->k_())/(this->betaStar_*this->omega_());
45 template<
class BasicMomentumTransportModel>
55 return max(Lt()/(CDES_*this->
delta()()), scalar(1));
57 return max(Lt()*(1 - F1)/(CDES_*this->
delta()()), scalar(1));
59 return max(Lt()*(1 - F2)/(CDES_*this->
delta()()), scalar(1));
62 <<
"Incorrect FSST = " << FSST_ <<
", should be 0, 1 or 2" 69 template<
class BasicMomentumTransportModel>
77 return this->betaStar_*this->omega_()*FDES(F1, F2);
83 template<
class BasicMomentumTransportModel>
91 const viscosity& viscosity,
97 LESeddyViscosity<BasicMomentumTransportModel>,
98 BasicMomentumTransportModel
119 FSST_(this->coeffDict_.lookupOrDefault(
"FSST", 2))
121 if (type == typeName)
123 this->printCoeffs(type);
130 template<
class BasicMomentumTransportModel>
137 LESeddyViscosity<BasicMomentumTransportModel>,
138 BasicMomentumTransportModel
142 CDES_.readIfPresent(this->coeffDict());
143 this->coeffDict().readIfPresent(
"FSST", FSST_);
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< volScalarField::Internal > epsilonByk(const volScalarField::Internal &F1, const volScalarField::Internal &F2) const
Return epsilon/k which for standard RAS is betaStar*omega.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
Generic dimensioned Type class.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
BasicMomentumTransportModel::alphaField alphaField
Implementation of the k-omega-SST turbulence model for incompressible and compressible flows...
bool read(const char *, int32_t &)
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))
kOmegaSSTDES(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.
BasicMomentumTransportModel::rhoField rhoField
virtual tmp< volScalarField::Internal > FDES(const volScalarField::Internal &F1, const volScalarField::Internal &F2) const
The DES dissipation-rate multiplier with options zonal filtering.
tmp< volScalarField::Internal > Lt() const
Return the turbulent length-scale.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class for managing temporary objects.
virtual bool read()
Read model coefficients if they have changed.