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",
53 IOobject::MUST_READ_IF_MODIFIED,
59 dimensionedScalar rhoc(transportProperties.lookup("rhoc"));
61 dimensionedScalar rhod(transportProperties.lookup("rhod"));
63 dimensionedScalar muc(transportProperties.lookup("muc"));
65 dimensionedScalar plasticViscosityCoeff
67 transportProperties.lookup("plasticViscosityCoeff")
70 dimensionedScalar plasticViscosityExponent
72 transportProperties.lookup("plasticViscosityExponent")
75 dimensionedScalar yieldStressCoeff
77 transportProperties.lookup("yieldStressCoeff")
80 dimensionedScalar yieldStressExponent
82 transportProperties.lookup("yieldStressExponent")
85 dimensionedScalar yieldStressOffset
87 transportProperties.lookup("yieldStressOffset")
90 Switch BinghamPlastic(transportProperties.lookup("BinghamPlastic"));
102 (scalar(1) - alpha)*rhoc + alpha*rhod
116 alpha.boundaryField().types()
119 #include "compressibleCreatePhi.H"
122 Info<< "Calculating field mul\n" << endl;
136 plasticViscosityCoeff,
137 plasticViscosityExponent,
143 Info<< "Initialising field Vdj\n" << endl;
155 dimensionedVector("0.0", U.dimensions(), vector::zero),
156 U.boundaryField().types()
160 Info<< "Selecting Drift-Flux model " << endl;
162 const word VdjModel(transportProperties.lookup("VdjModel"));
164 Info<< tab << VdjModel << " selected\n" << endl;
166 const dictionary& VdjModelCoeffs
168 transportProperties.subDict(VdjModel + "Coeffs")
171 dimensionedVector V0(VdjModelCoeffs.lookup("V0"));
173 dimensionedScalar a(VdjModelCoeffs.lookup("a"));
175 dimensionedScalar a1(VdjModelCoeffs.lookup("a1"));
177 dimensionedScalar alphaMin(VdjModelCoeffs.lookup("alphaMin"));
180 IOdictionary RASProperties
187 IOobject::MUST_READ_IF_MODIFIED,
193 Switch turbulence(RASProperties.lookup("turbulence"));
195 dictionary kEpsilonDict(RASProperties.subDictPtr("kEpsilonCoeffs"));
197 dimensionedScalar Cmu
199 dimensionedScalar::lookupOrAddToDict
209 dimensionedScalar::lookupOrAddToDict
219 dimensionedScalar::lookupOrAddToDict
229 dimensionedScalar::lookupOrAddToDict
237 dimensionedScalar sigmak
239 dimensionedScalar::lookupOrAddToDict
247 dimensionedScalar sigmaEps
249 dimensionedScalar::lookupOrAddToDict
257 dictionary wallFunctionDict(RASProperties.subDictPtr("wallFunctionCoeffs"));
259 dimensionedScalar kappa
261 dimensionedScalar::lookupOrAddToDict
271 dimensionedScalar::lookupOrAddToDict
279 if (RASProperties.lookupOrDefault("printCoeffs", false))
281 Info<< "kEpsilonCoeffs" << kEpsilonDict << nl
282 << "wallFunctionCoeffs" << wallFunctionDict << endl;
286 nearWallDist y(mesh);
288 Info<< "Reading field k\n" << endl;
302 Info<< "Reading field epsilon\n" << endl;
303 volScalarField epsilon
316 Info<< "Calculating field mut\n" << endl;
327 Cmu*rho*sqr(k)/epsilon
331 Info<< "Calculating field mu\n" << endl;
346 Info<< "Calculating field (g.h)f\n" << endl;
347 volScalarField gh("gh", g & mesh.C());
348 surfaceScalarField ghf(surfaceScalarField("gh", g & mesh.Cf()));
364 scalar pRefValue = 0.0;
369 mesh.solutionDict().subDict("PIMPLE"),
374 if (p_rgh.needReference())
376 p += dimensionedScalar
380 pRefValue - getRefCellValue(p, pRefCell)