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;
96 transportProperties.lookup("Cvm")
101 transportProperties.lookup("Cl")
106 transportProperties.lookup("Ct")
109 surfaceScalarField phi
117 fvc::interpolate(alpha)*phia + fvc::interpolate(beta)*phib
128 alpha*rhoa + beta*rhob
131 #include "createRASTurbulence.H"
133 Info<< "Calculating field DDtUa and DDtUb\n" << endl;
150 Info<< "Calculating field g.h\n" << endl;
151 volScalarField gh("gh", g & mesh.C());
153 IOdictionary interfacialProperties
157 "interfacialProperties",
165 autoPtr<dragModel> draga = dragModel::New
167 interfacialProperties,
173 autoPtr<dragModel> dragb = dragModel::New
175 interfacialProperties,
181 word dragPhase("blended");
182 if (interfacialProperties.found("dragPhase"))
184 dragPhase = word(interfacialProperties.lookup("dragPhase"));
187 dragPhase == "a" || dragPhase == "b" || dragPhase == "blended";
191 FatalErrorIn(args.executable())
192 << "invalid dragPhase " << dragPhase
197 Info << "dragPhase is " << dragPhase << endl;
198 kineticTheoryModel kineticTheory
206 surfaceScalarField rUaAf
217 dimensionedScalar("zero", dimensionSet(0, 0, 1, 0, 0), 0.0)
220 surfaceScalarField ppMagf
231 dimensionedScalar("zero", dimensionSet(0, 2, -1, 0, 0), 0.0)
236 scalar pRefValue = 0.0;
237 setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);