Skip to content

Getting started with NeqSim in Matlab

Even Solbraa edited this page May 7, 2019 · 25 revisions
  1. The pathNeqSim.m file need to be set up with the correct path to the installation. The pathstring variable has to be set to the base directory where neqsimmatlab is on the local disk. By default neqsimmatlab uses the embedded parameter database.

  2. Run the pathNeqSim.m script in Matlab

  3. Enter the following script to check that neqsimmatlab works correctly:

fluid1 = thermo('srk'); fluid1 .addComponent('methane', 10.0); fluid1 .addComponent('propane', 1.0); fluid1 .addComponent('n-hexane', 1.0); fluid1 .addComponent('water', 1.0); fluid1 .createDatabase(1); fluid1 .setMixingRule(2); fluid1 .setMultiPhaseCheck(1) TPflash(fluid1,0); test

Clone this wiki locally