41 template<
class BasicMomentumTransportModel>
66 hasDispersedPhaseNames_(this->coeffDict_.
found(
"dispersedPhases")),
70 this->coeffDict_.lookupOrDefault(
"dispersedPhases",
hashedWordList())
85 this->printCoeffs(
type);
92 template<
class BasicMomentumTransportModel>
97 Cmub_.readIfPresent(this->coeffDict());
108 template<
class BasicMomentumTransportModel>
116 if (hasDispersedPhaseNames_)
118 dispersedPhases.
resize(dispersedPhaseNames_.size());
120 forAll(dispersedPhaseNames_, dispersedPhasei)
125 &fluid.
phases()[dispersedPhaseNames_[dispersedPhasei]]
133 label dispersedPhasei = 0;
137 const phaseModel& otherPhase = fluid.
movingPhases()[movingPhasei];
139 if (&otherPhase != &phase_)
150 return dispersedPhases;
154 template<
class BasicMomentumTransportModel>
163 pow(this->betaStar_, 0.25)*this->
y()*
sqrt(this->k_)/this->nu()
167 this->a1_*this->k_/
max(this->a1_*this->omega_, this->b1_*
F2*
sqrt(S2));
174 *Cmub_*phaseIter().d()*phaseIter()
175 *(
mag(this->U_ - phaseIter().
U()));
178 this->nut_.correctBoundaryConditions();
183 template<
class BasicMomentumTransportModel>
#define forAll(list, i)
Loop across all elements in list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Generic GeometricField class.
Implementation of the k-omega-SST turbulence model for dispersed bubbly flows with Sato (1981) bubble...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
kOmegaSSTSato(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.
virtual bool read()
Read model coefficients if they have changed.
Specialisation for RAS of the generic kOmegaSSTBase base class. For more information,...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
label size() const
Return the number of elements in the UPtrList.
void resize(const label)
Reset size of UPtrList. This can only be used to set the size.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Generic dimensioned Type class.
A wordList with hashed indices for faster lookup by name.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual void correctNut()
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
Class to represent a system of phases and model interfacial transfers between them.
const phaseModelPartialList & movingPhases() const
Return the models for phases that are moving.
const phaseModelList & phases() const
Return the phase models.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
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)
To & refCast(From &r)
Reference type cast template function.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.