All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
updateFields.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
9 
10 // Velocity
12 
13 // Momentum
16 
17 // Nonlinear Tensor
19 
20 // Pressure
22 
23 //Speed of sound
25 
26 // Heat capacities ratio
29 
30 // Heat capacity at constant pressure
32 
33 //Mass fractions
35 {
36  if (i != inertIndex)
37  {
38  Yf[i] = qgdInterpolate(Y[i]);
39  }
40 }
41 
42 // Total specific enthalpy
43 H = (rhoE + p)/rho;
45 
46 /*
47  *
48  * QGD coefficients are now updated in the thermo library
49  *
50  */
53 
54 
55 
56 
Cpf
Definition: updateFields.H:42
rhoUf
Definition: updateFields.H:14
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
tmp< GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > > qgdInterpolate(const GeometricField< T, Foam::fvPatchField, Foam::volMesh > &psi)
rhof
Definition: updateFields.H:27
forAll(Y, i)
Definition: QGDYEqn.H:36
H
Definition: updateFields.H:34
rhofUf
Definition: updateFields.H:15
UrhoUf
Definition: updateFields.H:18
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
Info<< "Thermo corrected"<< endl;autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:59
volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U)
volScalarField & p
Definition: createFields.H:52