1 Info<< "Reading field p_rgh\n" << endl;
15 Info<< "Reading field alpha1\n" << endl;
29 Info<< "Calculating field alpha1\n" << endl;
30 volScalarField alpha2("alpha2", scalar(1) - alpha1);
32 Info<< "Reading field U\n" << endl;
46 #include "createPhi.H"
49 Info<< "Reading transportProperties\n" << endl;
50 twoPhaseMixture twoPhaseProperties(U, phi);
52 dimensionedScalar rho10
54 twoPhaseProperties.subDict
56 twoPhaseProperties.phase1Name()
60 dimensionedScalar rho20
62 twoPhaseProperties.subDict
64 twoPhaseProperties.phase2Name()
68 dimensionedScalar psi1
70 twoPhaseProperties.subDict
72 twoPhaseProperties.phase1Name()
76 dimensionedScalar psi2
78 twoPhaseProperties.subDict
80 twoPhaseProperties.phase2Name()
84 dimensionedScalar pMin(twoPhaseProperties.lookup("pMin"));
86 Info<< "Calculating field g.h\n" << endl;
87 volScalarField gh("gh", g & mesh.C());
88 surfaceScalarField ghf("ghf", g & mesh.Cf());
102 (p_rgh + gh*(alpha1*rho10 + alpha2*rho20))
103 /(1.0 - gh*(alpha1*psi1 + alpha2*psi2)),
108 volScalarField rho1(rho10 + psi1*p);
109 volScalarField rho2(rho20 + psi2*p);
118 IOobject::READ_IF_PRESENT,
121 alpha1*rho1 + alpha2*rho2
126 // Initialisation does not matter because rhoPhi is reset after the
127 // alpha1 solution before it is used in the U equation.
128 surfaceScalarField rhoPhi
138 fvc::interpolate(rho)*phi
143 pos(alpha2)*fvc::div(phi)/max(alpha2, scalar(0.0001))
146 // Construct interface from alpha1 distribution
147 interfaceProperties interface(alpha1, U, twoPhaseProperties);
149 // Construct incompressible turbulence model
150 autoPtr<incompressible::turbulenceModel> turbulence
152 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)