1 Info<< "Reading transportProperties\n" << endl;
3 IOdictionary transportProperties
15 autoPtr<phaseModel> phasea = phaseModel::New
22 autoPtr<phaseModel> phaseb = phaseModel::New
29 volVectorField& Ua = phasea->U();
30 surfaceScalarField& phia = phasea->phi();
31 const dimensionedScalar& rhoa = phasea->rho();
32 const dimensionedScalar& nua = phasea->nu();
34 volVectorField& Ub = phaseb->U();
35 surfaceScalarField& phib = phaseb->phi();
36 const dimensionedScalar& rhob = phaseb->rho();
37 const dimensionedScalar& nub = phaseb->nu();
39 Info<< "Reading field alpha\n" << endl;
64 //,alpha.boundaryField().types()
67 Info<< "Reading field p\n" << endl;
94 Info<< "Reading field k\n" << endl;
108 Info<< "Reading field epsilon\n" << endl;
109 volScalarField epsilon
122 dimensionedScalar Cvm
124 transportProperties.lookup("Cvm")
129 transportProperties.lookup("Cl")
134 transportProperties.lookup("Ct")
137 surfaceScalarField phi
145 fvc::interpolate(alpha)*phia + fvc::interpolate(beta)*phib
149 IOdictionary RASProperties
164 RASProperties.lookup("turbulence")
167 dictionary kEpsilonCoeffs
169 RASProperties.subDict("kEpsilonCoeffs")
175 readScalar(kEpsilonCoeffs.lookup("Cmu"))
180 readScalar(kEpsilonCoeffs.lookup("C1"))
185 readScalar(kEpsilonCoeffs.lookup("C2"))
190 readScalar(kEpsilonCoeffs.lookup("alphak"))
195 readScalar(kEpsilonCoeffs.lookup("alphaEps"))
198 dictionary wallFunctionCoeffs
200 RASProperties.subDict("wallFunctionCoeffs")
205 readScalar(wallFunctionCoeffs.lookup("kappa"))
210 readScalar(wallFunctionCoeffs.lookup("E"))
213 nearWallDist y(mesh);
215 Info<< "Calculating field nutb\n" << endl;
229 Info<< "Calculating field nuEffa\n" << endl;
230 volScalarField nuEffa
243 Info<< "Calculating field nuEffb\n" << endl;
244 volScalarField nuEffb
258 Info<< "Calculating field DDtUa and DDtUb\n" << endl;
260 volVectorField DDtUa =
265 volVectorField DDtUb =
271 Info<< "Calculating field g.h\n" << endl;
272 volScalarField gh("gh", g & mesh.C());
274 IOdictionary interfacialProperties
278 "interfacialProperties",
286 autoPtr<dragModel> draga = dragModel::New
288 interfacialProperties,
294 autoPtr<dragModel> dragb = dragModel::New
296 interfacialProperties,
302 word dragPhase("blended");
303 if (interfacialProperties.found("dragPhase"))
305 dragPhase = word(interfacialProperties.lookup("dragPhase"));
308 dragPhase == "a" || dragPhase == "b" || dragPhase == "blended";
312 FatalErrorIn(args.executable())
313 << "invalid dragPhase " << dragPhase
318 Info << "dragPhase is " << dragPhase << endl;
319 kineticTheoryModel kineticTheory
327 surfaceScalarField rUaAf
338 dimensionedScalar("zero", dimensionSet(0, 0, 1, 0, 0), 0.0)
341 surfaceScalarField ppMagf
352 dimensionedScalar("zero", dimensionSet(0, 2, -1, 0, 0), 0.0)
357 scalar pRefValue = 0.0;
358 setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);