mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-15 00:48:18 -05:00
Fix set_reference_stateD(); closes #1091
Now all inputs are molar, and the function actually works!
This commit is contained in:
@@ -150,10 +150,10 @@ You might want to start by looking at CoolProp.h
|
||||
/// Set the reference state based on a thermodynamic state point specified by temperature and molar density
|
||||
/// @param FluidName The name of the fluid
|
||||
/// @param T Temperature at reference state [K]
|
||||
/// @param rhomolar Density at reference state [mol/m^3]
|
||||
/// @param h0 Enthalpy at reference state [J/mol]
|
||||
/// @param s0 Entropy at references state [J/mol/K]
|
||||
void set_reference_stateD(const std::string &FluidName, double T, double rhomolar, double h0, double s0);
|
||||
/// @param rhomolar Molar density at reference state [mol/m^3]
|
||||
/// @param hmolar0 Molar enthalpy at reference state [J/mol]
|
||||
/// @param smolar0 Molar entropy at reference state [J/mol/K]
|
||||
void set_reference_stateD(const std::string &FluidName, double T, double rhomolar, double hmolar0, double smolar0);
|
||||
|
||||
/// Return a string representation of the phase
|
||||
/// @param Name1 The first state variable name, one of "T","D","H",etc.
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
* \sa \ref CoolProp::set_reference_stateD
|
||||
* @returns error_code 1 = Ok 0 = error
|
||||
*/
|
||||
EXPORT_CODE int CONVENTION set_reference_stateD(const char *Ref, double T, double rho, double h0, double s0);
|
||||
EXPORT_CODE int CONVENTION set_reference_stateD(const char *Ref, double T, double rhomolar, double hmolar0, double smolar0);
|
||||
/** \brief FORTRAN 77 style wrapper of the PropsSI function
|
||||
* \overload
|
||||
* \sa \ref CoolProp::PropsSI(const std::string &, const std::string &, double, const std::string &, double, const std::string&)
|
||||
|
||||
Reference in New Issue
Block a user