thorade / HelmholtzMedia

Modelica library for the calculation of fluid properties from a Helmholtz energy equation of state (EoS).
BSD 3-Clause "New" or "Revised" License
35 stars 16 forks source link

reference state is fixed #8

Open thorade opened 11 years ago

thorade commented 11 years ago

Currently, the reference state is fixed. To change the reference state, one has to change the helmholtzCoefficients.idealPower. Examples.Validation.ReferenceState contains some more explanation

thorade commented 11 years ago

also see Span 2000, page 21ff http://books.google.de/books?id=dd410GGw8wUC&pg=PA21

thorade commented 11 years ago

don't forget to decrease the helmholtzCoefficients.idealLog by 1 when switching from CPP to PH0 (compare e.g. Butane.fld, it has both CPP and PH0)

thorade commented 11 years ago

and possibly divide by -T_c, as done e.g. here: https://github.com/thorade/HelmholtzMedia/blob/master/HelmholtzMedia/HelmholtzFluids/Ethanol/package.mo

thorade commented 7 years ago

When changing the reference state, SMIN, SMAX, HMIN, HMAX, SCRIT and HCRIT have to be adapted, too.