1 Info<< "Reading field p_rgh\n" << endl;
15 Info<< "Reading field alpha\n" << endl;
29 Info<< "Reading field U\n" << endl;
44 Info<< "Reading transportProperties\n" << endl;
46 IOdictionary transportProperties
50 "transportProperties",
59 dimensionedScalar rhoc
61 transportProperties.lookup("rhoc")
64 dimensionedScalar rhod
66 transportProperties.lookup("rhod")
71 transportProperties.lookup("muc")
74 dimensionedScalar plasticViscosityCoeff
76 transportProperties.lookup("plasticViscosityCoeff")
79 dimensionedScalar plasticViscosityExponent
81 transportProperties.lookup("plasticViscosityExponent")
84 dimensionedScalar yieldStressCoeff
86 transportProperties.lookup("yieldStressCoeff")
89 dimensionedScalar yieldStressExponent
91 transportProperties.lookup("yieldStressExponent")
94 dimensionedScalar yieldStressOffset
96 transportProperties.lookup("yieldStressOffset")
101 transportProperties.lookup("BinghamPlastic")
114 (scalar(1) - alpha)*rhoc + alpha*rhod
128 alpha.boundaryField().types()
131 #include "compressibleCreatePhi.H"
134 Info<< "Calculating field mul\n" << endl;
148 plasticViscosityCoeff,
149 plasticViscosityExponent,
155 Info<< "Initialising field Vdj\n" << endl;
167 dimensionedVector("0.0", U.dimensions(), vector::zero),
168 U.boundaryField().types()
172 Info<< "Selecting Drift-Flux model " << endl;
176 transportProperties.lookup("VdjModel")
179 Info<< tab << VdjModel << " selected\n" << endl;
181 const dictionary& VdjModelCoeffs
183 transportProperties.subDict(VdjModel + "Coeffs")
188 VdjModelCoeffs.lookup("V0")
193 VdjModelCoeffs.lookup("a")
198 VdjModelCoeffs.lookup("a1")
201 dimensionedScalar alphaMin
203 VdjModelCoeffs.lookup("alphaMin")
208 IOdictionary RASProperties
223 RASProperties.lookup("turbulence")
226 dictionary kEpsilonDict
228 RASProperties.subDictPtr("kEpsilonCoeffs")
231 dimensionedScalar Cmu
233 dimensionedScalar::lookupOrAddToDict
243 dimensionedScalar::lookupOrAddToDict
253 dimensionedScalar::lookupOrAddToDict
263 dimensionedScalar::lookupOrAddToDict
271 dimensionedScalar alphak
273 dimensionedScalar::lookupOrAddToDict
281 dimensionedScalar alphaEps
283 dimensionedScalar::lookupOrAddToDict
291 dictionary wallFunctionDict
293 RASProperties.subDictPtr("wallFunctionCoeffs")
296 dimensionedScalar kappa
298 dimensionedScalar::lookupOrAddToDict
308 dimensionedScalar::lookupOrAddToDict
316 if (RASProperties.lookupOrDefault<Switch>("printCoeffs", false))
318 Info<< "kEpsilonCoeffs" << kEpsilonDict << nl
319 << "wallFunctionCoeffs" << wallFunctionDict << endl;
323 nearWallDist y(mesh);
325 Info<< "Reading field k\n" << endl;
339 Info<< "Reading field epsilon\n" << endl;
340 volScalarField epsilon
353 Info<< "Calculating field mut\n" << endl;
364 Cmu*rho*sqr(k)/epsilon
368 Info<< "Calculating field mu\n" << endl;
383 Info<< "Calculating field (g.h)f\n" << endl;
384 volScalarField gh("gh", g & mesh.C());
385 surfaceScalarField ghf = surfaceScalarField("gh", g & mesh.Cf());
401 scalar pRefValue = 0.0;
406 mesh.solutionDict().subDict("PISO"),
411 if (p_rgh.needReference())
413 p += dimensionedScalar
417 pRefValue - getRefCellValue(p, pRefCell)