Commit Graph

4234 Commits

Author SHA1 Message Date
Ian Bell
317e37504c Disable cppformat for VxWorks 2016-09-29 22:03:45 -06:00
Ian Bell
746e9bb730 Updating build system for vxWorks 2016-09-29 21:39:39 -06:00
Jorrit Wronski
3a72d8cf02 Might have fixed the CMake issues in #1247 2016-09-30 00:16:48 +02:00
Jorrit Wronski
73f181c02f Quick hack to work on #1247, cmake has to be updated in the linux python builder docker conatiners 2016-09-29 09:22:26 +02:00
Jorrit Wronski
d6b9863005 Included the standard DLLs in the installer package for #1237 2016-09-23 11:06:01 +02:00
Jorrit Wronski
f31e0a302d Removed the absolute path from the Excel example file 2016-09-23 10:30:41 +02:00
Jorrit Wronski
114831d97c Include the new version of the Excel plugin, should solve the DLL not found issue in #1237 2016-09-23 10:27:12 +02:00
Ian Bell
c938bb378f CoolProp online is back up!
Added docs to help ensure this doesn't happen again...
2016-09-20 20:15:16 -06:00
Jorrit Wronski
a259f69921 Added support for Excel 2016 2016-09-20 13:00:32 +02:00
Jorrit Wronski
f8c49ad2c7 Directory upload to buildbot 2016-09-20 11:44:55 +02:00
Jorrit Wronski
23eea1a1b9 Replaced xcopy with a cmake command for the Excel builder 2016-09-19 23:23:13 +02:00
Jorrit Wronski
273350b5eb Merge remote-tracking branch 'origin/master' 2016-09-19 22:34:46 +02:00
Jorrit Wronski
18f2ed0f2c Merge branch 'integrate_excel_installer' 2016-09-19 22:32:07 +02:00
Jorrit Wronski
c2af1fc9b2 Moved the Excel builder to the DTU machine 2016-09-19 22:31:44 +02:00
Jorrit Wronski
cfadec4e15 Updated the ExcelInstaller 2016-09-19 22:21:38 +02:00
Jorrit Wronski
0e91967e4e Merging all actions into the CMake commands, rewrote buildbot configuration 2016-09-19 22:04:42 +02:00
Ian Bell
e97a7f931f Add ability to skip flash for DT inputs for REFPROP; closes #801 2016-09-18 19:44:43 -06:00
JonWel
30d44be01e Shortcut VTPR when pure fluids, solves #1232 (#1239)
* Shortcut VTPR when pure fluids, closes #1232

Also get use of the molar fraction as available as an argument in gE_R_RT
2016-09-18 19:02:04 -06:00
Jorrit Wronski
160b895082 The installer for #1237 seems to work, tests are pending, as is the buildbot integration 2016-09-18 23:51:52 +02:00
Jorrit Wronski
2c9ba0ac2c Installer works, PATH variable remains unedited for now 2016-09-18 23:32:33 +02:00
Jorrit Wronski
62fbcd2373 Modified the Excel files to match the new library names and included a new CMake target in the builbot configuration 2016-09-18 21:39:03 +02:00
Jorrit Wronski
8a3b9c3247 Modified the add-in installer 2016-09-18 21:10:45 +02:00
Ian Bell
5fc1d9f51a Add the ability to set limits in Consistency plots (#1234) 2016-09-16 10:14:30 -06:00
Ian Bell
ac8e6df11d Add ability to use Peng-Robinson in REFPROP; closes #1233 2016-09-15 21:01:36 -06:00
Jorrit Wronski
3f3a63f8be Minor compatibility fix for cppformat 2016-09-11 19:41:42 +02:00
Ian Bell
08245ff00b Update stability debug output text 2016-09-09 13:44:38 -07:00
Ian Bell
7e6c0637d3 A bit more conservative search for the stationary point density on liquid side
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2016-09-09 13:21:36 -07:00
Ian Bell
54cf1fdc96 Decrease max tau to 4; see #1226 (max tau was 4.9... in issue) 2016-09-08 20:51:58 -06:00
Ian Bell
26a2520b5a Make all functions in DepartureFunction overrridable; closes #1227 2016-09-08 20:27:45 -06:00
Ian Bell
9a0aa614a8 Fix upper bound for density in TPD calc; closes #1222 2016-09-04 18:28:13 -06:00
Ian Bell
d2ba7df29b Take more steps in stability evaluator; closes #1221 2016-09-04 15:21:19 -06:00
Ian Bell
a74ae15a86 Update convergence criteria for ND Newton-Raphson; closes #985 2016-09-01 19:36:27 -06:00
Ian Bell
9b129ce950 First cut at adding ODE integrators; closes #1220 2016-09-01 13:24:14 -06:00
Ian Bell
9a9e7ecc54 Fix path to which cppformat is copied 2016-08-30 18:38:55 -06:00
Ian Bell
ae7184c297 Add some logic to avoid negative densities for cubics; closes #1217 2016-08-30 18:20:11 -06:00
Ian Bell
2281351de4 One more update to docs 2016-08-30 18:08:18 -06:00
Ian Bell
6d4e1835a9 Fix docs for saturation_Wilson; see #1218 2016-08-30 18:06:26 -06:00
Ian Bell
1d1d9be4f7 Remove double post_update in update_TP_guessrho; closes #1219 2016-08-30 18:06:26 -06:00
Ian Bell
cc6a9d0103 Some more initials for air paper 2016-08-30 10:49:38 -06:00
Ian Bell
e4fc813d4c Update Pruss last name in Wagner and Pruss 2016-08-30 10:08:10 -06:00
Ian Bell
371eecae60 Turn off caching in UNIFAQ and move non-temperature dependent code into set_mole_fractions (thanks @JonWel); closes #1215 2016-08-29 20:33:37 -06:00
Ian Bell
79fb9a6933 Fix debug print formatting 2016-08-28 21:58:57 -06:00
Ian Bell
5f2bf21141 Add QT_flash_with_guesses
``` python
import matplotlib.pyplot as plt, numpy as np, CoolProp.CoolProp as CP, CoolProp

fluids = ['CO2','Ethane']

AS = CoolProp.AbstractState('HEOS','&'.join(fluids))
xx,yy = [],[]
for z in np.linspace(0, 1, 20):
	try:
		AS.set_mole_fractions([z, 1-z])
		pt = AS.all_critical_points()[0]
		xx.append(z)
		yy.append(pt.p)
	except: pass
plt.plot(xx, yy, label='critical line')

CP.set_debug_level(0)
AS = CoolProp.AbstractState('HEOS','&'.join(fluids))
for T, c in zip([288,293,298],['b','r','g']):
	for Q in 0,1:
		guesses = None
		for x in np.linspace(0.00001, 1, 200):
			try:
				if guesses is None:
					AS.set_mole_fractions([x,1-x])
					AS.update(CP.QT_INPUTS,Q,T)
					guesses = CP.PyGuessesStructure()
					plt.plot(x, AS.p(), 'o',color=c)
				else:
					guesses = CP.PyGuessesStructure()
					guesses.rhomolar_liq = AS.saturated_liquid_keyed_output(CP.iDmolar)
					guesses.rhomolar_vap = AS.saturated_vapor_keyed_output(CP.iDmolar)
					guesses.p = AS.p()
					guesses.x = AS.mole_fractions_liquid()
					guesses.y = AS.mole_fractions_vapor()
					if Q == 0:
						guesses.x = [x,1-x];
					else:
						guesses.y = [x,1-x];
					AS.set_mole_fractions([x,1-x])
					AS.update_with_guesses(CP.QT_INPUTS, Q, T, guesses)
					plt.plot(x, AS.p(), 'o',color=c)
			except BaseException as BE:
				print(x, BE)
plt.legend(loc='best')
plt.show()
```
2016-08-28 21:52:07 -06:00
Ian Bell
0f6be419de Bump Eigen revision; closes #1065 2016-08-28 21:52:06 -06:00
Ian Bell
9b04d29673 Bump Catch revision; closes #1065 2016-08-28 18:43:05 -06:00
Ian Bell
47dec07917 Try to fix MATLAB CMake 2016-08-28 18:15:00 -06:00
Ian Bell
d9c3c91dab Some efforts to resolve issues with the stationary point failures 2016-08-28 18:07:15 -06:00
Ian Bell
1b179e080a Try to help matlab on linux statically link some libraries. 2016-08-28 18:05:55 -06:00
Ian Bell
fecff87a19 Another try at MathCAD 2016-08-28 16:44:46 -06:00
Ian Bell
6b18c4361e Try to fix MathCAD wrapper 2016-08-28 13:44:16 -06:00