All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
createFields.H
Go to the documentation of this file.
1 volVectorField U
2 (
3  IOobject
4  (
5  "U",
6  runTime.timeName(),
7  mesh,
8  IOobject::MUST_READ,
9  IOobject::AUTO_WRITE
10  ),
11  mesh
12 );
13 
14 Info<< "Reading thermophysical properties\n" << endl;
15 twoPhaseIcoQGDThermo thermo(mesh,U);
16 thermo.correct();
17 
18 
19 const dimensionedScalar& rho1 = thermo.rho1();
20 const dimensionedScalar& rho2 = thermo.rho2();
21 const dimensionedScalar& nu1 = thermo.nu1();
22 const dimensionedScalar& nu2 = thermo.nu2();
23 const dimensionedScalar& Tau1 = thermo.Tau1();
24 const dimensionedScalar& Tau2 = thermo.Tau2();
25 
26 volScalarField& alpha1 = thermo.alpha1();
27 volScalarField& alpha2 = thermo.alpha2();
28 volScalarField& p = thermo.p();
29 volScalarField rho
30 (
31  IOobject
32  (
33  "rho",
34  runTime.timeName(),
35  mesh,
36  IOobject::NO_READ,
37  IOobject::AUTO_WRITE
38  ),
39  thermo.rho()
40 );
41 
42 Info<< "\nReading gravitationalProperties" << endl;
43 
44 IOdictionary gravitationalProperties
45 (
46  IOobject
47  (
48  "gravitationalProperties",
49  runTime.constant(),
50  mesh,
51  IOobject::MUST_READ_IF_MODIFIED,
52  IOobject::NO_WRITE
53  )
54 );
55 const dimensionedVector g(gravitationalProperties.lookup("g"));
56 
57 surfaceScalarField phi
58 (
59  "phi",
60  mesh.Sf() & linearInterpolate(U)
61 );
62 
63 volVectorField BdFrc
64 (
65  "BdFrc",
66  rho*g
67 );
68 
69 volVectorField cFrc
70 (
71  "cFrc",
72  fvc::reconstruct(thermo.surfaceTensionForce()*mesh.magSf())
73 );
74 
75 surfaceScalarField hQGDf = thermo.hQGDf();
76 
77 Switch implicitDiffusion (thermo.implicitDiffusion());
78 
79 Info<< "Creating turbulence model\n" << endl;
80 // Construct incompressible turbulence model
81 //autoPtr<incompressible::turbulenceModel> turbulence
82 //(
83 // incompressible::turbulenceModel::New(U, phi, mixture)
84 //);
85 
86 label pRefCell = 0;
87 scalar pRefValue = 0.0;
88 setRefCell(p, thermo.subDict("QGD"), pRefCell, pRefValue);
89 
90 //
91 //END-OF-FILE
92 //
93 
const surfaceScalarField & hQGDf
Definition: createFields.H:54
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
Switch implicitDiffusion(thermo.implicitDiffusion())
BdFrc
Definition: updateFields.H:35
rhoQGDThermo & thermo
Definition: createFields.H:47
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
volScalarField & p
Definition: createFields.H:52