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<< "Reading transportProperties\n" << endl;
46 twoPhaseMixture twoPhaseProperties(U, phi, "alpha1");
48 const dimensionedScalar& rho1 = twoPhaseProperties.rho1();
49 //const dimensionedScalar& rho2 = twoPhaseProperties.rho2();
52 // Need to store rho for ddt(rho, U)
60 IOobject::READ_IF_PRESENT
62 twoPhaseProperties.rho()
68 surfaceScalarField rhoPhi
78 fvc::interpolate(rho)*phi
88 IOobject::READ_IF_PRESENT,
91 pd + rho*(g & mesh.C()),
92 pd.boundaryField().types()
97 scalar pRefValue = 0.0;
98 setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);
99 dimensionedScalar one("one", dimless, 1.0);
101 Info<< "Calculating field g.h\n" << endl;
102 volScalarField gh("gh", g & mesh.C());
103 surfaceScalarField ghf("ghf", g & mesh.Cf());
107 // Construct interface from alpha1 distribution
108 interfaceProperties interface(alpha1, U, twoPhaseProperties);
110 // Construct incompressible turbulence model
111 autoPtr<incompressible::turbulenceModel> turbulence
113 incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)
116 Info<< "Reading field rAU if present\n" << endl;
124 IOobject::READ_IF_PRESENT,
128 dimensionedScalar("dt", dimTime, 1.0)/rho1,
129 // runTime.deltaT()/rho,
130 zeroGradientFvPatchScalarField::typeName
133 numericalBeach beach(U);