You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NeqSim 3.0.49 comes with two pure component parameter databases: standard and extended. Standard database has properties of about 250 components while extended database has properties of more than 50.000 components. Use of standard database will be faster, as the table is loaded as an embedded database during calculations. The extended database contains all components available in the standard database with same parameters.
from neqsim import jneqsim
#default - use of neqsim standard database
jneqsim.util.database.NeqSimDataBase.useExtendedComponentDatabase(False)
component_names = jneqsim.util.database.NeqSimDataBase.getComponentNames()
print("Component Names Stadard NeqSim DB:", component_names)
print("Number of Components:", len(component_names))
#Calculation reading parameters from standard neqsim database
fluid1 = fluid('srk')
fluid1.setTemperature(20.0, 'C')
fluid1.setPressure(1.1, 'bara')
fluid1.addComponent('methane', 1.0)
TPflash(fluid1)
printFrame(fluid1)
#when selected extended database all components from a larger database can be used (a bit slower as components are loaded into a embedded database)
jneqsim.util.database.NeqSimDataBase.useExtendedComponentDatabase(True)
component_names = jneqsim.util.database.NeqSimDataBase.getComponentNames()
print("Component Name Extended NeqSim DBs:", component_names)
print("Number of Components:", len(component_names))
#Calculation reading parameters from neqsim extended database
fluid1 = fluid('srk')
fluid1.setTemperature(20.0, 'C')
fluid1.setPressure(1.1, 'bara')
fluid1.addComponent('furoin', 1.0)
TPflash(fluid1)
printFrame(fluid1)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
NeqSim 3.0.49 comes with two pure component parameter databases: standard and extended. Standard database has properties of about 250 components while extended database has properties of more than 50.000 components. Use of standard database will be faster, as the table is loaded as an embedded database during calculations. The extended database contains all components available in the standard database with same parameters.
Standard: https://github.com/equinor/neqsim/blob/master/src/main/resources/data/COMP.csv
Extended: https://github.com/equinor/neqsim/blob/master/src/main/resources/data/COMP_EXT.csv
Beta Was this translation helpful? Give feedback.
All reactions