Commit Graph

128 Commits

Author SHA1 Message Date
Ian Bell
a84edcdb57 Implemented saturation P 1D solver for low pressure for some fluids like n-Propane
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 11:24:27 +02:00
Ian Bell
f7c0cb0b06 Relaxed some pressure domain checks and pass state by reference
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 23:40:16 +02:00
Ian Bell
36620cdc94 Fixed parameters in AbstractState header - SWIG is not pleased
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 22:25:24 +02:00
Ian Bell
8f9c6ca438 Added hs_anchor test (passing) and function get_state to allow to get access to states stored in the backends
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 21:17:34 +02:00
Ian Bell
b7bd58d986 More work on flash routines, number of failures is rapidly decreasing - still have problems for low pressure sat_p calcs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 11:21:12 +02:00
Ian Bell
c3cc696080 P,Y now works if P > pc
Add supercritical_gas and supercritical_liquid phase flags for a bit finer granularity

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-09 15:10:09 +02:00
Ian Bell
faf530d588 Fixed melting curves, PY flash works for subcritical cases 2014-08-09 11:07:21 +02:00
Ian Bell
1aec75df85 PY subcrit superheated tests pass
There was a typo in umass() function

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-08 11:26:35 +02:00
Ian Bell
138135f5b7 Added Tmin and Tmax
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 18:58:13 +02:00
Ian Bell
a2f45e29da Added functionality for trivial outputs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 18:55:52 +02:00
Ian Bell
df17eaf6cc python wrapper builds with vs2008 (fixed bug in Eigen)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 11:37:17 +02:00
Ian Bell
90103b50e2 Added two-phase enthalpy and entropy calculations based on vapor quality weighting of saturation properties. Fixed some bugs associated with that.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-01 14:16:59 +02:00
Ian Bell
412504a4d9 When changing reference state, hs_anchor is updated, and ancillary curves still work!! woohoo
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-01 10:50:47 +02:00
jowr
6360e84a54 Added some new functions to handle volume fractions, hope this does not cause any trouble other places 2014-07-22 17:29:01 +02:00
Ian Bell
f4764eb929 Incompressibles load and run! ExamplePure works.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-09 18:06:21 +02:00
Ian Bell
ca7fc30a58 Added saturation spline to the AbstractState and REFPROP interfaces
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-11 15:38:49 +02:00
Ian Bell
409e2a2d1f Fluids using IIR reference state now all agree with REFPROP
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-02 13:03:17 +02:00
Ian Bell
61b2f28c0b Added mass-based high-level functions for h,s,u, etc.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-02 09:59:18 +02:00
Ian Bell
d537899bf0 Docs for factory function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-01 21:59:43 +02:00
Ian Bell
43255cfd5f Docs for abstract state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-28 19:55:05 +02:00
Ian Bell
7b8606f323 No more deletes used anywhere in the codebase. Only std::tr1::shared_ptr are used. Should be portable solution.
All tests run, no memory leaks according to VLD

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-28 19:45:04 +02:00
Ian Bell
f93aa76210 ECS conductivity work - nearly works, just need to sort out the conformal state solver.
Goodbye to AbstractStateWrapper - can use std::tr1::shared_ptr, much nicer

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-28 19:15:34 +02:00
Ian Bell
3367b089fd First cut at adding code for ECS for viscosity. Starting with R124 2014-05-28 12:57:30 +02:00
Ian Bell
dbac65da89 Added docs to AbstractState
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-23 17:13:07 +02:00
Ian bell
79ceae2f5c Diabled copy ctor for now for AbstractStateWrapper class until we figure out how to handle ownership and copying
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-20 13:57:28 +02:00
Ian bell
43904c3cac AbstractStateWrapper now checks whether AbstractState has been instantiated; HumidAirProp instantiation moved to function that is called by all exposed functions
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-20 12:52:26 +02:00
Ian Bell
8328c271c6 Fixed initialization bug, Octave example compiles and runs on linux now 2014-05-18 00:10:51 +02:00
Ian bell
b3847c7522 Initial commit for v5, but this time with the right line endings
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-14 12:46:24 +02:00