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  PtrList<surfaceScalarField> Yf (Y.size());
15  forAll(Y,i)
16  {
17  if (i != inertIndex)
18  {
19  Yf.set
20  (
21  i,
22  new surfaceScalarField(linearInterpolate(Y[i]))
23  );
24  }
25  }
26 
27  // Velocity
28  surfaceVectorField Uf
29  (
30  "Uf",
31  linearInterpolate(U)
32  );
33 
34  // Pressure
35  surfaceScalarField pf
36  (
37  "pf",
38  linearInterpolate(p)
39  );
40 
41  // Heat capacities ratio
42  surfaceScalarField gammaf
43  (
44  "gammaf",
45  linearInterpolate(gamma)
46  );
47 
48  surfaceScalarField gammam1f
49  (
50  "gammam1",
51  gammaf - 1
52  );
53 
54  // Heat capacity at constant pressure
55  surfaceScalarField Cpf
56  (
57  "Cpf",
58  linearInterpolate(thermo.Cp())
59  );
60 
61  surfaceScalarField Hf
62  (
63  "Hf",
64  linearInterpolate((rhoE + p)/rho)
65  //or (rhoEf + pf)/rhof?
66  );
67 
68  surfaceScalarField muf
69  (
70  "muf",
71  linearInterpolate(thermo.mu()*0.0)
72  );
73 
74  surfaceScalarField alphauf
75  (
76  "alphauf",
77  muf*0.0
78  );
79 
80  surfaceScalarField cf
81  (
82  "cf",
83  linearInterpolate(thermo.c())
84  );
85 
Cpf
Definition: updateFields.H:42
const label inertIndex(composition.species()[inertSpecie])
pf
Definition: updateFields.H:21
muf
Definition: updateFields.H:38
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
PtrList< surfaceScalarField > Yf(Y.size())
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
forAll(Y, i)
Definition: QGDYEqn.H:36
Hf
Definition: updateFields.H:35
PtrList< volScalarField > & Y
Definition: createFields.H:29
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