1 Info<< "Reading field p\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"
135 scalar pRefValue = 0.0;
136 setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
139 Info<< "Calculating field mul\n" << endl;
153 plasticViscosityCoeff,
154 plasticViscosityExponent,
160 Info<< "Initialising field Vdj\n" << endl;
172 dimensionedVector("0.0", U.dimensions(), vector::zero),
173 U.boundaryField().types()
177 Info<< "Selecting Drift-Flux model " << endl;
181 transportProperties.lookup("VdjModel")
184 Info<< tab << VdjModel << " selected\n" << endl;
186 const dictionary& VdjModelCoeffs
188 transportProperties.subDict(VdjModel + "Coeffs")
193 VdjModelCoeffs.lookup("V0")
198 VdjModelCoeffs.lookup("a")
203 VdjModelCoeffs.lookup("a1")
206 dimensionedScalar alphaMin
208 VdjModelCoeffs.lookup("alphaMin")
213 IOdictionary RASProperties
228 RASProperties.lookup("turbulence")
231 const dictionary& kEpsilonCoeffs
233 RASProperties.subDict("kEpsilonCoeffs")
239 readScalar(kEpsilonCoeffs.lookup("Cmu"))
244 readScalar(kEpsilonCoeffs.lookup("C1"))
249 readScalar(kEpsilonCoeffs.lookup("C2"))
254 readScalar(kEpsilonCoeffs.lookup("C3"))
259 readScalar(kEpsilonCoeffs.lookup("alphak"))
264 readScalar(kEpsilonCoeffs.lookup("alphaEps"))
267 const dictionary& wallFunctionCoeffs
269 RASProperties.subDict("wallFunctionCoeffs")
274 readScalar(wallFunctionCoeffs.lookup("kappa"))
279 readScalar(wallFunctionCoeffs.lookup("E"))
282 nearWallDist y(mesh);
284 Info<< "Reading field k\n" << endl;
298 Info<< "Reading field epsilon\n" << endl;
299 volScalarField epsilon
312 Info<< "Calculating field mut\n" << endl;
323 Cmu*rho*sqr(k)/epsilon
327 Info<< "Calculating field mu\n" << endl;
341 Info<< "Calculating field (g.h)f\n" << endl;
342 surfaceScalarField ghf = surfaceScalarField("gh", g & mesh.Cf());