Commit Graph

510 Commits

Author SHA1 Message Date
Mike Kaganski
f7ef611f50 Set error string in get_parameter_information_string() : fixes #1096 (#1097)
Set error string in get_parameter_information_string() and fix SMath wrapper : fixes #1096
2016-06-05 14:54:42 -06:00
JonWel
a858417397 Revert part of 763d4ce to solve #1077 (#1093)
* Revert part of #763d4ce to solve #974

* Addapt Julia wrapper to dfbb3a4

May be better in the future to use a second argument and insert it to the buffer, but I don't know yet how to do properly the conversion.
So for now, will always return the "long" option.

* "long" in byte array literal

* Enhance get_parameter_information_string

as discussed in #1093

I however have a strange behavior during my testing, sometimes the parameter gets correctly recognised and I have the correct output, but sometimes it answer "parameter is invalid: parametername", whereas I send the exact same commend in Julia side...

* Terminate string with 0 when instering in the buffer

As discussed in #1093

* Better error handling for get_parameter_information_string

Now there is a distinction between error in `param` or in `Output`.

* Update CoolProp.jl

Closes #1077
2016-06-03 08:36:37 -06:00
Ian Bell
758c5e0177 Merge branch 'master' of https://github.com/coolprop/coolprop 2016-06-01 20:30:05 -06:00
Ian Bell
e8c90e40e3 Fix typo in python wrapper of acentric factor; closes #1084 2016-06-01 20:29:14 -06:00
Jorrit Wronski
6d669dc607 make the manylinux scripts executable 2016-05-27 13:38:56 +02:00
Jorrit Wronski
272003fff3 Fixed a conflict of Bash variable names 2016-05-27 11:33:39 +02:00
Jorrit Wronski
08fd0997aa Changed the docker scripts 2016-05-27 10:25:21 +02:00
Jorrit Wronski
662e10f8fe Fixed the manylinux builder, closes #1061 2016-05-25 20:40:20 +02:00
Jorrit Wronski
c647124f0e Added the bitness and tags for the docker images 2016-05-25 19:56:30 +02:00
Jorrit Wronski
ade143f664 Added the mass and mole fraction setters to the plotting routines 2016-05-23 16:39:05 +02:00
Jorrit Wronski
0540419251 Replacing the old functions 2016-05-23 12:45:06 +02:00
Jorrit Wronski
be3d6a2a9f Fixed a couple of coding style issues 2016-05-23 09:40:32 +02:00
Jorrit Wronski
dbe7d101c1 More plotting examples 2016-05-23 09:05:02 +02:00
Jorrit Wronski
7df74b5f1a Fixed a couple of minor plotting issues 2016-05-23 00:38:25 +02:00
Jorrit Wronski
82f12a35ee Was this the unicode issue? 2016-05-22 20:52:36 +02:00
Jorrit Wronski
030fbd1c97 It might work without unicode_literals in the plotting package 2016-05-22 20:28:06 +02:00
Jorrit Wronski
f79a63d194 Rearranged the Python imports in the package 2016-05-22 19:38:56 +02:00
Jorrit Wronski
8485d3fcee Tested the examples and they seem to work 2016-05-22 18:29:57 +02:00
Jorrit Wronski
d514530627 Restructured the cycle calculations and split the Python modules 2016-05-22 17:26:05 +02:00
Jorrit Wronski
4bd78fb0de Added a cycle example 2016-05-22 17:26:04 +02:00
Jorrit Wronski
c499a60a6e Adapted the plotting code to use the new functions 2016-05-22 17:26:04 +02:00
Davide Carpi
61366fb3e8 Enable infinity in MakeDoubleResult (#1080)
Looking around I think this change should be related to the issue #985
Since double.NegativeInfinity and double.PositiveInfinity are valid results from the solvers and SMath.Math.Numeric.TDouble(result) can't handle these values directly, this patch allows the users to see  ∞ / -∞ as results on the canvas
2016-05-22 13:00:09 +02:00
Ian Bell
90a78c9478 Expose fluid_names function to Python; closes #1079 2016-05-22 12:59:11 +02:00
Ian Bell
f1992a7ace Expose Gibbs energy through to python; closes #1072 2016-05-22 12:53:56 +02:00
Ian Bell
7aa33d4b69 Expose chemical potential to python interface; closes #1073 2016-05-22 12:43:58 +02:00
Jorrit Wronski
b05ff1bb89 Fixing the plots that I might have broken in #1036 2016-05-22 11:09:36 +02:00
Ian Bell
3cab149d1b restart the docker machine always (a bit slower, but I don't know a better solution - @jowr ?) 2016-05-11 07:23:59 -06:00
Ian Bell
85d2157ca4 Fire up docker if it isn't already running 2016-05-10 22:24:55 -06:00
Jeff Henning
9b9e94a9dd Added "set_reference_state" wrapper for Mathcad and Updated Example Worksheets (#1056)
- Added Mathcad wrapper for set_reference_stateS(), designated
set_reference_state in Mathcad.
- Added to the funcdoc interface (CoolProp_EN.xml)
- Tidy up some formatting in the README files

* Updated Mathcad 15 and Prime Example Sheets + PDFs of Each

@ibell I know we don't like binaries in the rep, but I feel these are
critical.  They are updates to the Mathcad worksheets that were already
there and PDF versions for anyone who doesn't have Mathcad (i.e.
@ibell).  The files are only about 250 KB each or 1MB total.  I don't
expect we'll need to add to them or add more.  We might consider how to
put these out with the DLL binaries as well.  They are the only
documentation on how to use the wrappers correctly.

* Fixed CMakeList.txt confict and modified M15 worksheet from .xmcd to .xmcdz (compressed file type)
2016-05-10 20:10:31 -06:00
Ian Bell
5fcb5dd2a9 Add apply_simple_mixing_rule to AbstractState; fix bug with SatL and SatV and setting interaction parameters
closes #1048
closes #1049
2016-05-07 19:51:25 -06:00
Jeff Henning
b201c78797 Mathcad Wrapper Updates for CoolProp 5.x and 6 (#1047)
Minor type mis-matches, etc.



* Update CMakeLists.txt for both Mathcad Prime and Mathad 15

Copied original MATHCAD module and modified for a PRIME module and a
MATHCAD15 module.

* Updated Mathcad Wrapper for version 5 & 6

Changes to CoolPropMathad.cpp:
* Uses PropsSI(), Props1SI(), and HAPropsSI()
* One source for both Prime and Mathcad 15
* Replaced Mathcad error #defines with enumerated values
* Replaced STRING const with MC_STRING enum
* Uses LP* and LPC* types from MCADINCL.h instead of * const
* Implemented get_global_param_string & get_fluid_param_string
* Cleaned up comments
GENERAL:
* Removed batch files (they don't work anymore)
* Updated README.rst in both directories with compile instruct.
* Removed cpp file from Prime directory (no longer needed)
* Removed MCADINCL headers (better to use from install directory)

* Fixed Typo on Props1SI function name

* Add function documentation XML file for Mathcad 15

Puts the functions in the Insert Function panel off the main menu of
Mathcad

* Modify Mathcad 15 README.rst

* Update Prime README.rst

* Update Prime README.rst (again)

* Fixed CmakeLists path and updated README files.

More robust CMake file and updated README info for clarity.

* Fixed RST syntax in README
2016-05-07 14:40:51 -06:00
Ian Bell
f3d095c6e2 Fix typo in OSX build flags 2016-04-30 13:16:01 -06:00
Ian Bell
4fe950a0d8 Copy cppformat to the appropriate location 2016-04-30 13:10:45 -06:00
Ian Bell
43481221c2 manylinux wheels fully working now 2016-04-29 09:42:53 -06:00
Ian Bell
9425f6227a More changes for manylinux 2016-04-29 09:09:06 -06:00
Ian Bell
406d6a8365 manylinux builds for 64-bit linux wheels are up-and-running
Run the ./build_images.sh script, builds docker image, and uses docker image to build the linux wheels
2016-04-27 09:10:13 -06:00
Jorrit Wronski
253c9790e4 Changed the string handling to tackle #979 2016-04-27 13:50:18 +02:00
Jorrit Wronski
0ef10eae8b Circumvent Cython issues from #1039, not sure this is a fix 2016-04-27 12:23:44 +02:00
Jorrit Wronski
1d28237563 Removed scipy references or changed them to be imported locally, fixes #1036 2016-04-27 11:53:35 +02:00
henningjp
f1bc6d5a9a Fixes STRING conflict between Mathcad library and cppformat
The Mathcad library header, mcadincl.h, defines a STRING constant.  This
should be MC_STRING, as STRING is too dangerous and conflicts with
STRING enumeration value in format.h from external/cppformat.
2016-04-23 11:02:32 -04:00
Ian Bell
f2d9ac3dbd python static library builds should be release builds 2016-04-11 21:20:03 -06:00
Ian Bell
d8e2b6d664 Add script to do mingw static library building for python; closes #1016 2016-04-07 21:45:14 -06:00
Jorrit Wronski
1f12986456 Once more addressing #979 thanks to @shrx . 2016-03-30 10:04:06 +02:00
Ian Bell
a35f09f81b Cubics now are validated and new cubic fluids can be added
Lots of changes:
* Cubics are validated against schema
* Schema can be returned as string
* Added preliminary docs for cubics
* Cubic fluids can be added programmatically
2016-03-24 15:40:25 -06:00
Ian Bell
2e373c4ca9 Wrap all configuration variables into enumerations and a python module 2016-03-21 21:50:23 -07:00
Ian Bell
25eb3c2f42 Fix include paths for OSX; see #994 2016-03-21 18:22:48 -06:00
Ian Bell
2160b02985 Implement 95% of the BIP setting/getting
See #1000
2016-03-19 20:39:40 -07:00
Ian Bell
470514a8e3 Refactor phase envelope packaging with msgpack to remove external msgpack-c include
Also, don't package msgpack or rapidjson with CoolProp.  Doesn't seem necessary now
2016-03-18 21:37:49 -07:00
Ian Bell
5da7326e31 Massive improvements to stability of flash routines. Nitrogen now has 0 failures. 2016-02-27 19:27:23 -07:00
Ian Bell
0630c47bc7 Also add the msgpack headers to CoolProp installation - more annoying than you would imagine... 2016-02-20 16:07:09 -07:00