Skip to content

Commit b0596d3

Browse files
Implemented density calculation according to ideal gas law in flamelet fluid model
1 parent 19e2699 commit b0596d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SU2_CFD/src/fluid/CFluidFlamelet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ void CFluidFlamelet::SetTDState_T(su2double val_temperature, const su2double* va
168168

169169
/*--- compute density according to ideal gas law ---*/
170170
Density = Pressure * (molar_weight / 1000.0) / (UNIVERSAL_GAS_CONSTANT * Temperature);
171-
171+
172172
/*--- compute Cv from Cp and molar weight of the mixture (ideal gas) ---*/
173-
Cv = Cp - UNIVERSAL_GAS_CONSTANT / molar_weight;
173+
Cv = Cp - UNIVERSAL_GAS_CONSTANT / (molar_weight / 1000.0);
174174
}
175175

176176
unsigned long CFluidFlamelet::GetEnthFromTemp(su2double* val_enth, su2double val_prog, su2double val_temp, su2double initial_value) {

0 commit comments

Comments
 (0)