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
8 rhof = linearInterpolate(rho);
12 
13 ef = linearInterpolate(e);
17 
18 // Velocity
19 Uf = linearInterpolate(U);
22 
23 // Pressure
24 pf = linearInterpolate(p);
25 
26 //Speed of sound
27 cf = linearInterpolate(thermo.c());
28 
29 // Heat capacities ratio
30 gammaf = linearInterpolate(gamma);
32 
33 // Total specific enthalpy
36 
37 /*
38  *
39  * QGD coefficients are now updated in the thermo library
40  *
41  */
42 alphauf = linearInterpolate(turbulence->alphaEff());
43 muf = linearInterpolate(turbulence->muEff());
44 
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf, const surfaceScalarField &dir, const word &reconFieldName=word::null)
Interpolate field vf according to direction dir.
surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh,)
pf
Definition: updateFields.H:21
surfaceScalarField eLnf
tmp< surfaceScalarField > logMean(const surfaceScalarField &a, const surfaceScalarField &b)
Definition: zQGDFoam.C:59
e_pos
Definition: updateFields.H:14
muf
Definition: updateFields.H:38
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
ef
Definition: updateFields.H:13
gammaf
Definition: updateFields.H:27
rho_pos
Definition: updateFields.H:9
alphauf
Definition: updateFields.H:42
const volScalarField & gamma
Definition: createFields.H:19
rhof
Definition: updateFields.H:27
p1f
Definition: updateFields.H:35
surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh,)
volScalarField & e
Definition: createFields.H:50
e_neg
Definition: updateFields.H:15
rhoQGDThermo & thermo
Definition: createFields.H:47
gammam1f
Definition: updateFields.H:28
U_pos
Definition: updateFields.H:20
U_neg
Definition: updateFields.H:21
rho_neg
Definition: updateFields.H:10
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
E1f
Definition: updateFields.H:34
volScalarField & p
Definition: createFields.H:52
surfaceScalarField rhoLnf