All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
createFaceFields.H
Go to the documentation of this file.
1  /*
2  *
3  * Linear interpolation of fields from volumes to face centers
4  *
5  */
6 
7  // Density
8  surfaceScalarField rhof
9  (
10  "rhof",
11  linearInterpolate(rho)
12  );
13 
14  // Velocity
15  surfaceVectorField Uf
16  (
17  "Uf",
18  linearInterpolate(U)
19  );
20 
21  // Pressure
22  surfaceScalarField pf
23  (
24  "pf",
25  linearInterpolate(p)
26  );
27 
28  // Heat capacities ratio
29  surfaceScalarField gammaf
30  (
31  "gammaf",
32  linearInterpolate(gamma)
33  );
34 
35  surfaceScalarField gammam1f
36  (
37  "gammam1",
38  gammaf - 1
39  );
40 
41  // Heat capacity at constant pressure
42  surfaceScalarField Cpf
43  (
44  "Cpf",
45  linearInterpolate(thermo.Cp())
46  );
47 
48  surfaceScalarField Hf
49  (
50  "Hf",
51  linearInterpolate((rhoE + p)/rho)
52  //or (rhoEf + pf)/rhof?
53  );
54 
55  surfaceScalarField muf
56  (
57  "muf",
58  linearInterpolate(thermo.mu()*0.0)
59  );
60 
61  surfaceScalarField alphauf
62  (
63  "alphauf",
64  muf*0.0
65  );
66 
67  surfaceScalarField cf
68  (
69  "cf",
70  linearInterpolate(thermo.c())
71  );
72 
Cpf
Definition: updateFields.H:42
pf
Definition: updateFields.H:21
muf
Definition: updateFields.H:38
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
gammaf
Definition: updateFields.H:27
alphauf
Definition: updateFields.H:42
volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *e+rho *0.5 *magSqr(U))
const volScalarField & gamma
Definition: createFields.H:19
rhof
Definition: updateFields.H:27
Hf
Definition: updateFields.H:35
rhoQGDThermo & thermo
Definition: createFields.H:47
gammam1f
Definition: updateFields.H:28
Uf
Definition: updateFields.H:30
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
cf
Definition: updateFields.H:24
volScalarField & p
Definition: createFields.H:52