1 Info<< "Reading field p\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 volScalarField rho1 = rho10 + psi1*p;
87 volScalarField rho2 = rho20 + psi2*p;
96 IOobject::READ_IF_PRESENT,
99 alpha1*rho1 + alpha2*rho2
104 // Initialisation does not matter because rhoPhi is reset after the
105 // alpha1 solution before it is used in the U equation.
106 surfaceScalarField rhoPhi
116 fvc::interpolate(rho)*phi
119 volScalarField dgdt =
120 pos(alpha2)*fvc::div(phi)/max(alpha2, scalar(0.0001));
122 // Construct interface from alpha1 distribution
123 interfaceProperties interface(alpha1, U, twoPhaseProperties);
125 // Construct incompressible turbulence model
126 autoPtr<incompressible::turbulenceModel> turbulence
128 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)