synthetik-technologies / blastfoam

A CFD solver for multi-component compressible flow with application to high-explosive detonation, explosive safety and air blast
Other
219 stars 96 forks source link

Bug in hTabulated #77

Open DanielM1123 opened 1 year ago

DanielM1123 commented 1 year ago

Dear blastFOAM team,

I found a bug in the hTabulated thermodynamic model:

In hTabulatedBlastThermo.C and hTabulatedBlastThermoI.H, rather than looking up the minimum and maximum temperature in lines 41 and 42 (for both files), it looks up the minimum and maximum density.

Old version:

Tlow_(min(hTable_.x())),
Thigh_(max(hTable_.x())),

New version:

Tlow_(min(hTable_.y())),
Thigh_(max(hTable_.y())),

Best regards, Daniel