1 Info<< "Reading field p_rgh\n" << endl;
15 Info<< "Reading field alpha1\n" << endl;
29 Info<< "Reading field U\n" << endl;
43 #include "createPhi.H"
45 Info<< "Reading transportProperties\n" << endl;
46 twoPhaseMixture twoPhaseProperties(U, phi);
48 const dimensionedScalar& rho1 = twoPhaseProperties.rho1();
49 const dimensionedScalar& rho2 = twoPhaseProperties.rho2();
51 dimensionedScalar Dab(twoPhaseProperties.lookup("Dab"));
53 // Read the reciprocal of the turbulent Schmidt number
54 dimensionedScalar alphatab(twoPhaseProperties.lookup("alphatab"));
56 // Need to store rho for ddt(rho, U)
57 volScalarField rho("rho", alpha1*rho1 + (scalar(1) - alpha1)*rho2);
62 // Initialisation does not matter because rhoPhi is reset after the
63 // alpha1 solution before it is used in the U equation.
64 surfaceScalarField rhoPhi
77 Info<< "Calculating field (g.h)f\n" << endl;
78 volScalarField gh("gh", g & mesh.C());
79 surfaceScalarField ghf = surfaceScalarField("gh", g & mesh.Cf());
94 label p_rghRefCell = 0;
95 scalar p_rghRefValue = 0.0;
99 mesh.solutionDict().subDict("PIMPLE"),
104 scalar pRefValue = 0.0;
106 if (p_rgh.needReference())
108 pRefValue = readScalar
110 mesh.solutionDict().subDict("PIMPLE").lookup("pRefValue")
113 p += dimensionedScalar
117 pRefValue - getRefCellValue(p, p_rghRefCell)
122 // Construct incompressible turbulence model
123 autoPtr<incompressible::turbulenceModel> turbulence
125 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)