Skip to content

The NeqSim parameter database

Even Solbraa edited this page May 2, 2019 · 51 revisions

NeqSim reads the model parameters (such as Tc, Pc, acentric factor, kij, etc.) from a SQL database via a JDBC connection.

A Java Derby database is embedded in the source code distribution, and is the default parameter database used by NeqSim. The acess to the parameter database is done in the NeqSimDatabase class.

A new parameter databases can be used by inserting required tables, and setting the JDBC connection in the NeqSimDatabase.class. A simple way to create a new parameter database used by NeqSim is:

  1. Create a new paramter database using the SQL script (creates a copy of the embedded Derby database and populates it with the default parameters)

  2. Modify the connection string in the NeqSimDatabase class:

neqsim.util.database.NeqSimDataBase.setDataBaseType("mySQL"); neqsim.util.database.NeqSimDataBase.setConnectionString("jdbc:mysql://tr-w33:3306/neqsimthermodatabase");

The most important tables in the parameter database is the COMP table with the pure component parameters and the INTER table with binary interaction coefficients.

Clone this wiki locally