37 template<
class BasicMomentumTransportModel>
50 template<
class BasicMomentumTransportModel>
60 template<
class BasicMomentumTransportModel>
69 min(
max(gammaIntEff_, scalar(0.1)), scalar(1))
74 template<
class BasicMomentumTransportModel>
91 this->groupName(
"Fthetat"),
97 (1 -
sqr((gammaInt_() - 1.0/ce2_)/(1 - 1.0/ce2_)))
105 template<
class BasicMomentumTransportModel>
113 this->groupName(
"ReThetac"),
122 const scalar ReThetat = ReThetat_[celli];
129 + 120.656e-4*ReThetat
130 - 868.230e-6*
sqr(ReThetat)
131 + 696.506e-9*
pow3(ReThetat)
132 - 174.105e-12*
pow4(ReThetat)
134 ReThetat - 593.11 - 0.482*(ReThetat - 1870);
141 template<
class BasicMomentumTransportModel>
151 this->groupName(
"Flength"),
163 const scalar ReThetat = ReThetat_[celli];
169 - 119.270e-4*ReThetat
170 - 132.567e-6*
sqr(ReThetat);
172 else if (ReThetat < 596)
176 - 123.939e-2*ReThetat
177 + 194.548e-5*
sqr(ReThetat)
178 - 101.695e-8*
pow3(ReThetat);
180 else if (ReThetat < 1200)
182 Flength[celli] = 0.5 - 3
e-4*(ReThetat - 596);
186 Flength[celli] = 0.3188;
189 const scalar Fsublayer =
192 Flength[celli] = Flength[celli]*(1 - Fsublayer) + 40*Fsublayer;
199 template<
class BasicMomentumTransportModel>
212 this->groupName(
"ReThetat0"),
227 max(100*
sqrt((2.0/3.0)*
k[celli])/Us[celli], scalar(0.027))
242 const scalar lambda0 =
lambda;
246 const scalar Flambda =
261 (1173.51 - 589.428*Tu + 0.2196/
sqr(Tu))
267 const scalar Flambda =
282 331.50*
pow((Tu - 0.5658), -0.671)
283 *Flambda*nu[celli]/Us[celli];
286 lambda =
sqr(thetat)/nu[celli]*dUsds[celli];
291 maxIter =
max(maxIter, ++iter);
293 }
while (lambdaErr > lambdaErr_);
295 ReThetat0[celli] =
max(thetat*Us[celli]/nu[celli], scalar(20));
298 if (maxIter > maxLambdaIter_)
301 <<
"Number of lambda iterations exceeds maxLambdaIter("
302 << maxLambdaIter_ <<
')'<<
endl;
309 template<
class BasicMomentumTransportModel>
328 this->groupName(
"Fonset"),
329 max(Fonset2 - Fonset3, scalar(0))
336 template<
class BasicMomentumTransportModel>
414 this->coeffDict_.lookupOrDefault(
"lambdaErr", 1
e-6)
418 this->coeffDict_.lookupOrDefault(
"maxLambdaIter", 10)
426 this->groupName(
"ReThetat"),
427 this->runTime_.
name(),
439 this->groupName(
"gammaInt"),
440 this->runTime_.
name(),
452 this->groupName(
"gammaIntEff"),
453 this->runTime_.
name(),
464 template<
class BasicMomentumTransportModel>
469 ca1_.readIfPresent(this->coeffDict());
470 ca2_.readIfPresent(this->coeffDict());
471 ce1_.readIfPresent(this->coeffDict());
472 ce2_.readIfPresent(this->coeffDict());
473 sigmaThetat_.readIfPresent(this->coeffDict());
474 cThetat_.readIfPresent(this->coeffDict());
475 this->coeffDict().readIfPresent(
"lambdaErr", lambdaErr_);
476 this->coeffDict().readIfPresent(
"maxLambdaIter", maxLambdaIter_);
487 template<
class BasicMomentumTransportModel>
520 alpha()*
rho()*(cThetat_/t)*(1 - Fthetat)
530 Pthetat*ReThetat0(Us, dUsds, nu) -
fvm::Sp(Pthetat, ReThetat_)
534 ReThetatEqn.
ref().relax();
549 *ca1_*Flength(nu)*
S*
sqrt(gammaInt_()*Fonset(Rev, ReThetac, RT))
556 alpha()*
rho()*ca2_*Omega*Fturb*gammaInt_()
566 Pgamma -
fvm::Sp(ce1_*Pgamma, gammaInt_)
567 + Egamma -
fvm::Sp(ce2_*Egamma, gammaInt_)
571 gammaIntEqn.
ref().relax();
581 min(2*
max(Rev/(3.235*ReThetac) - 1, scalar(0))*Freattach, scalar(2))
585 gammaIntEff_ =
max(gammaInt_(), gammaSep);
589 template<
class BasicMomentumTransportModel>
592 if (!this->turbulence_)
598 correctReThetatGammaInt();
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Return a temporary field constructed from name, mesh,.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
tmp< volScalarField::Internal > Flength(const volScalarField::Internal &nu) const
Empirical correlation that controls the length of the.
virtual tmp< volScalarField > F1(const volScalarField &CDkOmega) const
Modified form of the k-omega SST F1 function.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< volScalarField::Internal > epsilonByk(const volScalarField::Internal &F1, const volScalarField::Internal &F2) const
Modified form of the k-omega SST epsilon/k.
tmp< volScalarField::Internal > Fthetat(const volScalarField::Internal &Us, const volScalarField::Internal &Omega, const volScalarField::Internal &nu) const
Freestream blending-function.
kOmegaSSTLM(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.
void correctReThetatGammaInt()
Solve the turbulence equations and correct the turbulence viscosity.
tmp< volScalarField::Internal > ReThetac() const
Empirical correlation for critical Reynolds number where the.
virtual tmp< volScalarField::Internal > Pk(const volScalarField::Internal &G) const
Modified form of the k-omega SST k production rate.
tmp< volScalarField::Internal > Fonset(const volScalarField::Internal &Rev, const volScalarField::Internal &ReThetac, const volScalarField::Internal &RT) const
Transition onset location control function.
tmp< volScalarField::Internal > ReThetat0(const volScalarField::Internal &Us, const volScalarField::Internal &dUsds, const volScalarField::Internal &nu) const
Return the transition onset momentum-thickness Reynolds number.
virtual bool read()
Re-read model coefficients if they have changed.
Specialisation for RAS of the generic kOmegaSSTBase base class. For more information,...
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Finite volume constraints.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
tmp< fvMatrix< Type > > source(const VolField< Type > &field) const
Return source for an equation.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual tmp< volScalarField::Internal > epsilonByk(const volScalarField::Internal &F1, const volScalarField::Internal &F2) const
Return epsilon/k which for standard RAS is betaStar*omega.
virtual tmp< volScalarField::Internal > Pk(const volScalarField::Internal &G) const
Return k production rate.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
Convenience class to handle the input of constant rotational speed. Reads an omega entry with default...
A class for managing temporary objects.
void clear() const
If object pointer points to valid object:
T & ref() const
Return non-const reference or generate a fatal error.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
Foam::fvConstraints & fvConstraints(Foam::fvConstraints::New(mesh))
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
dimensionedScalar lambda(viscosity->lookup("lambda"))
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionedScalar G
Newtonian constant of gravitation.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const VolField< Type > &)
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensionedScalar exp(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar pow3(const dimensionedScalar &ds)
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
tensor Ry(const scalar &omega)
Rotational transformation tensor about the y-axis by omega radians.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar pow4(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
bool bound(volScalarField &, const dimensionedScalar &min)
Bound the given scalar field where it is below the specified min value.
const dimensionSet dimVelocity
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.