1 Info<< "Reading field pd\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, "alpha1");
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()
70 // Initialisation does not matter because rhoPhi is reset after the
71 // alpha1 solution before it is used in the U equation.
72 surfaceScalarField rhoPhi
86 Info<< "Calculating field g.h\n" << endl;
87 volScalarField gh("gh", g & mesh.C());
88 surfaceScalarField ghf("gh", g & mesh.Cf());
105 scalar pdRefValue = 0.0;
106 setRefCell(pd, mesh.solutionDict().subDict("PISO"), pdRefCell, pdRefValue);
108 scalar pRefValue = 0.0;
110 if (pd.needReference())
112 pRefValue = readScalar
114 mesh.solutionDict().subDict("PISO").lookup("pRefValue")
117 p += dimensionedScalar
121 pRefValue - getRefCellValue(p, pdRefCell)
125 // Construct interface from alpha1 distribution
126 interfaceProperties interface(alpha1, U, twoPhaseProperties());
128 // Construct incompressible turbulence model
129 autoPtr<incompressible::turbulenceModel> turbulence
131 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties())