pEqn.H
Go to the documentation of this file.
1 {
2  rho = thermo.rho();
3  if (constProp == "volume")
4  {
5  scalar invW = 0.0;
6  forAll(Y, i)
7  {
8  invW += Y[i][0]/W[i];
9  }
10 
12 
13  p[0] = rho0*Rspecific[0]*thermo.T()[0];
14  rho[0] = rho0;
15  }
16 }
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:434
const Type & value() const
Return const reference to value.
rho
Definition: pEqn.H:1
const dimensionedScalar RR
Universal gas constant: default SI units: [J/kmol/K].
scalar rho0
Rspecific[0]
const scalarList W(::W(thermo))
const word constProp(initialConditions.lookup("constantProperty"))
volScalarField & p
PtrList< volScalarField > & Y
fluidMulticomponentThermo & thermo
Definition: createFields.H:31