createFieldRefs.H
Go to the documentation of this file.
1 twoPhaseChangeModel& phaseChange = phaseChangePtr();
2 
3 volScalarField& alpha2(mixture.alpha2());
4 
5 const volScalarField& rho1 = mixture.thermo1().rho();
6 const volScalarField& rho2 = mixture.thermo2().rho();
7 
8 volScalarField& p = mixture.p();
9 volScalarField& T = mixture.T();
10 const volScalarField& psi1 = mixture.thermo1().psi();
11 const volScalarField& psi2 = mixture.thermo2().psi();
12 
13 tmp<volScalarField> rAU;
14 
16 {
17  rAU = new volScalarField
18  (
19  IOobject
20  (
21  "rAU",
22  runTime.timeName(),
23  mesh,
24  IOobject::READ_IF_PRESENT,
25  IOobject::AUTO_WRITE
26  ),
27  mesh,
29  );
30 }
twoPhaseChangeModel & phaseChange
correctPhi
fvMesh & mesh
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:58
const dimensionSet dimTime
const dimensionSet dimDensity
volScalarField & alpha2(mixture.alpha2())
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< volScalarField > rAU
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Constructing compressibleTwoPhaseMixture\"<< endl;compressibleTwoPhaseMixture mixture(U, phi);autoPtr< twoPhaseChangeModel > phaseChangePtr(twoPhaseChangeModel::New(mixture))