kineticTheoryModel.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2019-2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "kineticTheoryModel.H"
30 #include "mathematicalConstants.H"
31 #include "twoPhaseSystem.H"
32 #include "fvOptions.H"
33 
34 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
35 
36 Foam::RASModels::kineticTheoryModel::kineticTheoryModel
37 (
38  const volScalarField& alpha,
39  const volScalarField& rho,
40  const volVectorField& U,
41  const surfaceScalarField& alphaRhoPhi,
42  const surfaceScalarField& phi,
43  const transportModel& phase,
44  const word& propertiesName,
45  const word& type
46 )
47 :
48  eddyViscosity
49  <
51  >
52  (
53  type,
54  alpha,
55  rho,
56  U,
57  alphaRhoPhi,
58  phi,
59  phase,
60  propertiesName
61  ),
62 
63  phase_(phase),
64 
65  viscosityModel_
66  (
67  kineticTheoryModels::viscosityModel::New
68  (
69  coeffDict_
70  )
71  ),
72  conductivityModel_
73  (
74  kineticTheoryModels::conductivityModel::New
75  (
76  coeffDict_
77  )
78  ),
79  radialModel_
80  (
81  kineticTheoryModels::radialModel::New
82  (
83  coeffDict_
84  )
85  ),
86  granularPressureModel_
87  (
88  kineticTheoryModels::granularPressureModel::New
89  (
90  coeffDict_
91  )
92  ),
93  frictionalStressModel_
94  (
95  kineticTheoryModels::frictionalStressModel::New
96  (
97  coeffDict_
98  )
99  ),
100 
101  equilibrium_(coeffDict_.get<bool>("equilibrium")),
102  e_("e", dimless, coeffDict_),
103  alphaMax_("alphaMax", dimless, coeffDict_),
104  alphaMinFriction_("alphaMinFriction", dimless, coeffDict_),
105  residualAlpha_("residualAlpha", dimless, coeffDict_),
106  maxNut_("maxNut", dimViscosity, 1000, coeffDict_),
107 
108  Theta_
109  (
110  IOobject
111  (
112  IOobject::groupName("Theta", phase.name()),
113  U.time().timeName(),
114  U.mesh(),
115  IOobject::MUST_READ,
116  IOobject::AUTO_WRITE
117  ),
118  U.mesh()
119  ),
120 
121  lambda_
122  (
123  IOobject
124  (
125  IOobject::groupName("lambda", phase.name()),
126  U.time().timeName(),
127  U.mesh(),
128  IOobject::NO_READ,
129  IOobject::NO_WRITE
130  ),
131  U.mesh(),
133  ),
134 
135  gs0_
136  (
137  IOobject
138  (
139  IOobject::groupName("gs0", phase.name()),
140  U.time().timeName(),
141  U.mesh(),
142  IOobject::NO_READ,
143  IOobject::NO_WRITE
144  ),
145  U.mesh(),
147  ),
148 
149  kappa_
150  (
151  IOobject
152  (
153  IOobject::groupName("kappa", phase.name()),
154  U.time().timeName(),
155  U.mesh(),
156  IOobject::NO_READ,
157  IOobject::NO_WRITE
158  ),
159  U.mesh(),
160  dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero)
161  ),
162 
163  nuFric_
164  (
165  IOobject
166  (
167  IOobject::groupName("nuFric", phase.name()),
168  U.time().timeName(),
169  U.mesh(),
170  IOobject::NO_READ,
171  IOobject::AUTO_WRITE
172  ),
173  U.mesh(),
175  )
176 {
177  if (type == typeName)
178  {
179  printCoeffs(type);
180  }
181 }
182 
183 
184 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
185 
187 {}
188 
189 
190 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
191 
193 {
194  if
195  (
196  eddyViscosity
197  <
198  RASModel<EddyDiffusivity<phaseCompressibleTurbulenceModel>>
199  >::read()
200  )
201  {
202  coeffDict().readEntry("equilibrium", equilibrium_);
203  e_.readIfPresent(coeffDict());
204  alphaMax_.readIfPresent(coeffDict());
205  alphaMinFriction_.readIfPresent(coeffDict());
206 
207  viscosityModel_->read();
208  conductivityModel_->read();
209  radialModel_->read();
210  granularPressureModel_->read();
211  frictionalStressModel_->read();
212 
213  return true;
214  }
215 
216  return false;
217 }
218 
219 
222 {
224  return nut_;
225 }
226 
227 
230 {
232  return nut_;
233 }
234 
235 
238 {
240  return nullptr;
241 }
242 
243 
246 {
247  return tmp<volSymmTensorField>
248  (
250  (
251  IOobject
252  (
253  IOobject::groupName("R", U_.group()),
254  runTime_.timeName(),
255  mesh_,
258  ),
259  - (nut_)*dev(twoSymm(fvc::grad(U_)))
260  - (lambda_*fvc::div(phi_))*symmTensor::I
261  )
262  );
263 }
264 
265 
268 {
269  const volScalarField& rho = phase_.rho();
270 
271  tmp<volScalarField> tpPrime
272  (
273  Theta_
274  *granularPressureModel_->granularPressureCoeffPrime
275  (
276  alpha_,
277  radialModel_->g0(alpha_, alphaMinFriction_, alphaMax_),
278  radialModel_->g0prime(alpha_, alphaMinFriction_, alphaMax_),
279  rho,
280  e_
281  )
282  + frictionalStressModel_->frictionalPressurePrime
283  (
284  phase_,
285  alphaMinFriction_,
286  alphaMax_
287  )
288  );
289 
290  volScalarField::Boundary& bpPrime =
291  tpPrime.ref().boundaryFieldRef();
292 
293  forAll(bpPrime, patchi)
294  {
295  if (!bpPrime[patchi].coupled())
296  {
297  bpPrime[patchi] == 0;
298  }
299  }
300 
301  return tpPrime;
302 }
303 
304 
307 {
308  return fvc::interpolate(pPrime());
309 }
310 
311 
314 {
315  return tmp<volSymmTensorField>
316  (
318  (
319  IOobject
320  (
321  IOobject::groupName("devRhoReff", U_.group()),
322  runTime_.timeName(),
323  mesh_,
326  ),
327  - (rho_*nut_)
328  *dev(twoSymm(fvc::grad(U_)))
329  - ((rho_*lambda_)*fvc::div(phi_))*symmTensor::I
330  )
331  );
332 }
333 
334 
337 (
339 ) const
340 {
341  return
342  (
343  - fvm::laplacian(rho_*nut_, U)
344  - fvc::div
345  (
346  (rho_*nut_)*dev2(T(fvc::grad(U)))
347  + ((rho_*lambda_)*fvc::div(phi_))
348  *dimensioned<symmTensor>("I", dimless, symmTensor::I)
349  )
350  );
351 }
352 
353 
355 {
356  // Local references
357  const twoPhaseSystem& fluid = refCast<const twoPhaseSystem>(phase_.fluid());
358  volScalarField alpha(max(alpha_, scalar(0)));
359  const volScalarField& rho = phase_.rho();
360  const surfaceScalarField& alphaRhoPhi = alphaRhoPhi_;
361  const volVectorField& U = U_;
362  const volVectorField& Uc_ = fluid.otherPhase(phase_).U();
363 
364  const scalar sqrtPi = sqrt(constant::mathematical::pi);
365  dimensionedScalar ThetaSmall("ThetaSmall", Theta_.dimensions(), 1.0e-6);
366  dimensionedScalar ThetaSmallSqrt(sqrt(ThetaSmall));
367 
368  tmp<volScalarField> tda(phase_.d());
369  const volScalarField& da = tda();
370 
371  tmp<volTensorField> tgradU(fvc::grad(U_));
372  const volTensorField& gradU(tgradU());
373  volSymmTensorField D(symm(gradU));
374 
375  // Calculating the radial distribution function
376  gs0_ = radialModel_->g0(alpha, alphaMinFriction_, alphaMax_);
377 
378  if (!equilibrium_)
379  {
380  // Particle viscosity (Table 3.2, p.47)
381  nut_ = viscosityModel_->nu(alpha, Theta_, gs0_, rho, da, e_);
382 
383  volScalarField ThetaSqrt("sqrtTheta", sqrt(Theta_));
384 
385  // Bulk viscosity p. 45 (Lun et al. 1984).
386  lambda_ = (4.0/3.0)*sqr(alpha)*da*gs0_*(1.0 + e_)*ThetaSqrt/sqrtPi;
387 
388  // Stress tensor, Definitions, Table 3.1, p. 43
390  (
391  rho*(2.0*nut_*D + (lambda_ - (2.0/3.0)*nut_)*tr(D)*I)
392  );
393 
394  // Dissipation (Eq. 3.24, p.50)
395  volScalarField gammaCoeff
396  (
397  "gammaCoeff",
398  12.0*(1.0 - sqr(e_))
399  *max(sqr(alpha), residualAlpha_)
400  *rho*gs0_*(1.0/da)*ThetaSqrt/sqrtPi
401  );
402 
403  // Drag
405  (
406  fluid.lookupSubModel<dragModel>
407  (
408  phase_,
409  fluid.otherPhase(phase_)
410  ).K()
411  );
412 
413  // Eq. 3.25, p. 50 Js = J1 - J2
414  volScalarField J1("J1", 3.0*beta);
415  volScalarField J2
416  (
417  "J2",
418  0.25*sqr(beta)*da*magSqr(U - Uc_)
419  /(
420  max(alpha, residualAlpha_)*rho
421  *sqrtPi*(ThetaSqrt + ThetaSmallSqrt)
422  )
423  );
424 
425  // particle pressure - coefficient in front of Theta (Eq. 3.22, p. 45)
426  volScalarField PsCoeff
427  (
428  granularPressureModel_->granularPressureCoeff
429  (
430  alpha,
431  gs0_,
432  rho,
433  e_
434  )
435  );
436 
437  // 'thermal' conductivity (Table 3.3, p. 49)
438  kappa_ = conductivityModel_->kappa(alpha, Theta_, gs0_, rho, da, e_);
439 
440  fv::options& fvOptions(fv::options::New(mesh_));
441 
442  // Construct the granular temperature equation (Eq. 3.20, p. 44)
443  // NB. note that there are two typos in Eq. 3.20:
444  // Ps should be without grad
445  // the laplacian has the wrong sign
446  fvScalarMatrix ThetaEqn
447  (
448  1.5*
449  (
450  fvm::ddt(alpha, rho, Theta_)
451  + fvm::div(alphaRhoPhi, Theta_)
452  - fvc::Sp(fvc::ddt(alpha, rho) + fvc::div(alphaRhoPhi), Theta_)
453  )
454  - fvm::laplacian(kappa_, Theta_, "laplacian(kappa,Theta)")
455  ==
456  - fvm::SuSp((PsCoeff*I) && gradU, Theta_)
457  + (tau && gradU)
458  + fvm::Sp(-gammaCoeff, Theta_)
459  + fvm::Sp(-J1, Theta_)
460  + fvm::Sp(J2/(Theta_ + ThetaSmall), Theta_)
461  + fvOptions(alpha, rho, Theta_)
462  );
463 
464  ThetaEqn.relax();
465  fvOptions.constrain(ThetaEqn);
466  ThetaEqn.solve();
467  fvOptions.correct(Theta_);
468  }
469  else
470  {
471  // Equilibrium => dissipation == production
472  // Eq. 4.14, p.82
473  volScalarField K1("K1", 2.0*(1.0 + e_)*rho*gs0_);
475  (
476  "K3",
477  0.5*da*rho*
478  (
479  (sqrtPi/(3.0*(3.0 - e_)))
480  *(1.0 + 0.4*(1.0 + e_)*(3.0*e_ - 1.0)*alpha*gs0_)
481  +1.6*alpha*gs0_*(1.0 + e_)/sqrtPi
482  )
483  );
484 
486  (
487  "K2",
488  4.0*da*rho*(1.0 + e_)*alpha*gs0_/(3.0*sqrtPi) - 2.0*K3/3.0
489  );
490 
491  volScalarField K4("K4", 12.0*(1.0 - sqr(e_))*rho*gs0_/(da*sqrtPi));
492 
493  volScalarField trD
494  (
495  "trD",
496  alpha/(alpha + residualAlpha_)
497  *fvc::div(phi_)
498  );
499  volScalarField tr2D("tr2D", sqr(trD));
500  volScalarField trD2("trD2", tr(D & D));
501 
502  volScalarField t1("t1", K1*alpha + rho);
503  volScalarField l1("l1", -t1*trD);
504  volScalarField l2("l2", sqr(t1)*tr2D);
505  volScalarField l3
506  (
507  "l3",
508  4.0
509  *K4
510  *alpha
511  *(2.0*K3*trD2 + K2*tr2D)
512  );
513 
514  Theta_ = sqr
515  (
516  (l1 + sqrt(l2 + l3))
517  /(2.0*max(alpha, residualAlpha_)*K4)
518  );
519 
520  kappa_ = conductivityModel_->kappa(alpha, Theta_, gs0_, rho, da, e_);
521  }
522 
523  Theta_.max(0);
524  Theta_.min(100);
525 
526  {
527  // particle viscosity (Table 3.2, p.47)
528  nut_ = viscosityModel_->nu(alpha, Theta_, gs0_, rho, da, e_);
529 
530  volScalarField ThetaSqrt("sqrtTheta", sqrt(Theta_));
531 
532  // Bulk viscosity p. 45 (Lun et al. 1984).
533  lambda_ = (4.0/3.0)*sqr(alpha)*da*gs0_*(1.0 + e_)*ThetaSqrt/sqrtPi;
534 
535  // Frictional pressure
536  volScalarField pf
537  (
538  frictionalStressModel_->frictionalPressure
539  (
540  phase_,
541  alphaMinFriction_,
542  alphaMax_
543  )
544  );
545 
546  nuFric_ = frictionalStressModel_->nu
547  (
548  phase_,
549  alphaMinFriction_,
550  alphaMax_,
551  pf/rho,
552  D
553  );
554 
555  // Limit viscosity and add frictional viscosity
556  nut_.min(maxNut_);
557  nuFric_ = min(nuFric_, maxNut_ - nut_);
558  nut_ += nuFric_;
559  }
560 
561  if (debug)
562  {
563  Info<< typeName << ':' << nl
564  << " max(Theta) = " << max(Theta_).value() << nl
565  << " max(nut) = " << max(nut_).value() << endl;
566  }
567 }
568 
569 
570 // ************************************************************************* //
Foam::expressions::patchExpr::debug
int debug
Static debugging option.
Foam::IOobject::NO_WRITE
Definition: IOobject.H:130
Foam::volTensorField
GeometricField< tensor, fvPatchField, volMesh > volTensorField
Definition: volFieldsFwd.H:64
Foam::RASModels::kineticTheoryModel::read
virtual bool read()
Re-read model coefficients if they have changed.
Definition: kineticTheoryModel.C:192
Foam::symm
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
Definition: dimensionedSymmTensor.C:84
mathematicalConstants.H
Foam::dimless
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Definition: dimensionSets.H:50
Foam::fvc::grad
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcGrad.C:54
fvOptions.H
K1
#define K1
Definition: SHA1.C:144
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::RASModels::kineticTheoryModel::k
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
Definition: kineticTheoryModel.C:221
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::fv::options::New
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
Definition: fvOptions.C:104
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
K4
#define K4
Definition: SHA1.C:147
Foam::read
bool read(const char *buf, int32_t &val)
Same as readInt32.
Definition: int32.H:107
Foam::phaseCompressibleTurbulenceModel
ThermalDiffusivity< PhaseCompressibleTurbulenceModel< phaseModel > > phaseCompressibleTurbulenceModel
Typedef for phaseCompressibleTurbulenceModel.
Definition: phaseCompressibleTurbulenceModel.H:47
Foam::RASModels::kineticTheoryModel::pPrimef
virtual tmp< surfaceScalarField > pPrimef() const
Return the face-phase-pressure'.
Definition: kineticTheoryModel.C:306
Foam::fvc::div
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:49
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:350
fluid
twoPhaseSystem & fluid
Definition: setRegionFluidFields.H:3
Foam::dev2
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
Definition: dimensionedSymmTensor.C:117
K3
#define K3
Definition: SHA1.C:146
rho
rho
Definition: readInitialConditions.H:88
Foam::GeometricField::min
void min(const dimensioned< Type > &dt)
Use the minimum of the field and specified value.
Definition: GeometricField.C:1132
Foam::min
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:33
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:296
Foam::magSqr
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
K
CGAL::Exact_predicates_exact_constructions_kernel K
Definition: CGALTriangulation3DKernel.H:58
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:436
Foam::fvm::SuSp
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:44
Foam::fvm::Sp
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
Foam::volSymmTensorField
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Definition: volFieldsFwd.H:63
Foam::Info
messageStream Info
Information stream (uses stdout - output is on the master only)
Foam::fvm::laplacian
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvmLaplacian.C:48
Foam::SymmTensor::I
static const SymmTensor I
Definition: SymmTensor.H:78
Foam::name
word name(const complex &c)
Return string representation of complex.
Definition: complex.C:76
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
beta
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:43
Foam::RASModels::kineticTheoryModel::correct
virtual void correct()
Solve the kinetic theory equations and correct the viscosity.
Definition: kineticTheoryModel.C:354
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
K2
#define K2
Definition: SHA1.C:145
timeName
word timeName
Definition: getTimeIndex.H:3
Foam::dimViscosity
const dimensionSet dimViscosity
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvc::interpolate
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Foam::RASModels::kineticTheoryModel::epsilon
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
Definition: kineticTheoryModel.C:229
Foam::RASModels::kineticTheoryModel::pPrime
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
Definition: kineticTheoryModel.C:267
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:60
U
U
Definition: pEqn.H:72
Foam::RASModels::kineticTheoryModel::devRhoReff
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
Definition: kineticTheoryModel.C:313
Foam::RASModels::kineticTheoryModel::~kineticTheoryModel
virtual ~kineticTheoryModel()
Destructor.
Definition: kineticTheoryModel.C:186
Foam::fvm::ddt
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: fvmDdt.C:48
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
Foam::compressible::RASModel
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
Definition: turbulentFluidThermoModel.H:66
Foam::constant::mathematical::pi
constexpr scalar pi(M_PI)
Foam::nl
constexpr char nl
Definition: Ostream.H:385
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:54
Foam::sqrt
dimensionedScalar sqrt(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:144
Foam::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:590
bool
bool
Definition: EEqn.H:20
D
const dimensionedScalar & D
Definition: solveBulkSurfactant.H:4
Foam::RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::printCoeffs
virtual void printCoeffs(const word &type)
Print model coefficients.
Definition: RASModel.C:34
Foam::roots::type
type
Types of root.
Definition: Roots.H:54
Foam::RASModels::kineticTheoryModel::omega
virtual tmp< volScalarField > omega() const
Return the specific dissipation rate.
Definition: kineticTheoryModel.C:237
Foam::fvc::ddt
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:47
Foam::tr
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
Definition: dimensionedSphericalTensor.C:51
Foam::IOobject::groupName
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Foam::fvc::Sp
tmp< GeometricField< Type, fvPatchField, volMesh > > Sp(const volScalarField &sp, const GeometricField< Type, fvPatchField, volMesh > &vf)
Definition: fvcSup.C:69
Foam::RASModels::kineticTheoryModel::R
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
Definition: kineticTheoryModel.C:245
Foam::RASModels::kineticTheoryModel::divDevRhoReff
virtual tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
Definition: kineticTheoryModel.C:337
Foam::IOobject::NO_READ
Definition: IOobject.H:123
Foam::fvm::div
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvmDiv.C:48
Foam::twoSymm
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Definition: dimensionedSymmTensor.C:95
Foam::I
static const Identity< scalar > I
Definition: Identity.H:95
Foam::dev
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
Definition: dimensionedSymmTensor.C:106