1 Info<< "Reading field pd\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<< "Calculating field g.h\n" << endl;
50 volScalarField gh("gh", g & mesh.C());
51 surfaceScalarField ghf("ghf", g & mesh.Cf());
54 Info<< "Reading transportProperties\n" << endl;
55 twoPhaseMixture twoPhaseProperties(U, phi);
57 dimensionedScalar rho10
59 twoPhaseProperties.subDict
61 twoPhaseProperties.phase1Name()
65 dimensionedScalar rho20
67 twoPhaseProperties.subDict
69 twoPhaseProperties.phase2Name()
73 dimensionedScalar psi1
75 twoPhaseProperties.subDict
77 twoPhaseProperties.phase1Name()
81 dimensionedScalar psi2
83 twoPhaseProperties.subDict
85 twoPhaseProperties.phase2Name()
89 dimensionedScalar pMin(twoPhaseProperties.lookup("pMin"));
103 (pd + gh*(alpha1*rho10 + alpha2*rho20))
104 /(1.0 - gh*(alpha1*psi1 + alpha2*psi2)),
109 volScalarField rho1 = rho10 + psi1*p;
110 volScalarField rho2 = rho20 + psi2*p;
119 IOobject::READ_IF_PRESENT,
122 alpha1*rho1 + alpha2*rho2
127 // Initialisation does not matter because rhoPhi is reset after the
128 // alpha1 solution before it is used in the U equation.
129 surfaceScalarField rhoPhi
139 fvc::interpolate(rho)*phi
142 volScalarField dgdt =
143 pos(alpha2)*fvc::div(phi)/max(alpha2, scalar(0.0001));
145 // Construct interface from alpha1 distribution
146 interfaceProperties interface(alpha1, U, twoPhaseProperties);
148 // Construct LES model
149 autoPtr<incompressible::LESModel> turbulence
151 incompressible::LESModel::New(U, phi, twoPhaseProperties)