1 Info<< "Reading field p_rgh\n" << endl;
15 Info<< "Reading field alpha1\n" << endl;
30 Info<< "Reading field alpha2\n" << endl;
45 Info<< "Reading field alpha3\n" << endl;
59 alpha3 == 1.0 - alpha1 - alpha2;
62 Info<< "Reading field U\n" << endl;
76 #include "createPhi.H"
78 threePhaseMixture threePhaseProperties(U, phi);
80 const dimensionedScalar& rho1 = threePhaseProperties.rho1();
81 const dimensionedScalar& rho2 = threePhaseProperties.rho2();
82 const dimensionedScalar& rho3 = threePhaseProperties.rho3();
84 dimensionedScalar D23(threePhaseProperties.lookup("D23"));
86 // Need to store rho for ddt(rho, U)
94 IOobject::READ_IF_PRESENT
96 alpha1*rho1 + alpha2*rho2 + alpha3*rho3,
97 alpha1.boundaryField().types()
103 // Initialisation does not matter because rhoPhi is reset after the
104 // alpha solution before it is used in the U equation.
105 surfaceScalarField rhoPhi
119 // Construct interface from alpha distribution
120 threePhaseInterfaceProperties interface(threePhaseProperties);
123 // Construct incompressible turbulence model
124 autoPtr<incompressible::turbulenceModel> turbulence
126 incompressible::turbulenceModel::New(U, phi, threePhaseProperties)
130 Info<< "Calculating field g.h\n" << endl;
131 volScalarField gh("gh", g & mesh.C());
132 surfaceScalarField ghf("ghf", g & mesh.Cf());
148 scalar pRefValue = 0.0;
153 mesh.solutionDict().subDict("PIMPLE"),
158 if (p_rgh.needReference())
160 p += dimensionedScalar
164 pRefValue - getRefCellValue(p, pRefCell)