mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-03 18:35:03 -05:00
Predefined mixtures working in PropsSI now
Added Catch test
``` python
In [1]: import CoolProp
In [2]: CoolProp.CoolProp.PropsSI('D','P',101325,'T',300,'Air.mix')
Out[2]: 1.1766975266680577
```
Closes https://github.com/CoolProp/CoolProp/issues/287
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -1322,6 +1322,17 @@ TEST_CASE("Test that saturation solvers solve all the way to T = Tc", "[sat_T_to
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("Predefined mixtures", "[predefined_mixtures]")
|
||||
{
|
||||
SECTION("PropsSI"){
|
||||
double val = PropsSI("Dmolar","P",101325,"T",300,"Air.mix");
|
||||
std::string err = get_global_param_string("errstring");
|
||||
CAPTURE(val);
|
||||
CAPTURE(err);
|
||||
CHECK(ValidNumber(val));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("Test that reference states are correct", "[reference_states]")
|
||||
{
|
||||
std::vector<std::string> fluids = strsplit(CoolProp::get_global_param_string("fluids_list"),',');
|
||||
|
||||
Reference in New Issue
Block a user