Skip to content

Commit

Permalink
added freezingCO2 script
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed May 16, 2019
1 parent 38f8cc8 commit e7b5b1f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
13 changes: 13 additions & 0 deletions derby.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
----------------------------------------------------------------
Thu May 16 10:57:58 CEST 2019:
Booting Derby (version The Apache Software Foundation - Apache Derby - 10.12.1.1 - (1704137)) instance a816c00e-016a-bfdc-b7e3-00000448ab50
on database directory classpath:data/neqsimthermodatabase in READ ONLY mode with class loader com.mathworks.jmi.CustomURLClassLoader@5b6813df.
Loaded from file:/C:/Users/esol/OneDrive%20-%20Equinor/programming/neqsimmatlab/ext/NeqSim.jar.
java.vendor=Oracle Corporation
java.runtime.version=1.8.0_121-b13
user.dir=C:\Users\esol\Documents\MATLAB
os.name=Windows 10
os.arch=amd64
os.version=10.0
derby.system.home=null
Database Class Loader started - derby.database.classpath=''
10 changes: 10 additions & 0 deletions example/freezingCO2.asv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
system1 = neqsim.thermo.system.SystemSrkEos(250.0, 20.0); % Kelvin / bara
system1.addComponent('methane', 90.0);
system1.addComponent('CO2', 10.0);
system1.setMixingRule(2);
system1.setSolidPhaseCheck('CO2');
freezt(system1);
system1

disp(['freezing temperature ',num2str(system1.getTemperature()-273.15)])

8 changes: 8 additions & 0 deletions example/freezingCO2.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
system1 = thermo('srk', 250.0, 20.0); % EoS / Temperature [Kelvin] / Pressure [bara]
system1.addComponent('methane', 90.0);
system1.addComponent('CO2', 10.0);
system1.setMixingRule('classic');
system1.setSolidPhaseCheck('CO2');
freezt(system1);
system1
disp(['freezing temperature ',num2str(system1.getTemperature()-273.15)])
Binary file modified example/livetest.mlx
Binary file not shown.
2 changes: 1 addition & 1 deletion example/testUMRPhaseEnvelope.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fluid1 = thermo('UMR-PRU-EoS',273.15+55, 25.0);
fluid1.addComponent('methane', 6.0);
fluid1.addComponent('ethane', 26.0);
fluid1.addComponent('n-hexane', 44.5);
fluid1.createDatabase(1);
fluid1.setMixingRule('UNIFAC_UMRPRU');
Expand Down

0 comments on commit e7b5b1f

Please sign in to comment.