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<< "Creating phaseChangeTwoPhaseMixture\n" << endl;
46 autoPtr<phaseChangeTwoPhaseMixture> twoPhaseProperties =
47 phaseChangeTwoPhaseMixture::New(U, phi);
49 const dimensionedScalar& rho1 = twoPhaseProperties->rho1();
50 const dimensionedScalar& rho2 = twoPhaseProperties->rho2();
51 const dimensionedScalar& pSat = twoPhaseProperties->pSat();
53 // Need to store rho for ddt(rho, U)
61 IOobject::READ_IF_PRESENT
63 alpha1*rho1 + (scalar(1) - alpha1)*rho2,
64 alpha1.boundaryField().types()
68 // Construct interface from alpha1 distribution
69 interfaceProperties interface(alpha1, U, twoPhaseProperties());
71 // Construct incompressible turbulence model
72 autoPtr<incompressible::turbulenceModel> turbulence
74 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties())
78 Info<< "Calculating field g.h\n" << endl;
79 volScalarField gh("gh", g & mesh.C());
80 surfaceScalarField ghf("ghf", g & mesh.Cf());
96 scalar pRefValue = 0.0;
101 mesh.solutionDict().subDict("PIMPLE"),
106 if (p_rgh.needReference())
108 p += dimensionedScalar
112 pRefValue - getRefCellValue(p, pRefCell)