-
Notifications
You must be signed in to change notification settings - Fork 2
Getting started with NeqSim in Matlab
The following steps describes how to set up NeqSim Matlab for first use:
1. Dowonload NeqSim Matlab to the local disk
Download or Clone neqsim matlab to your local disk from the neqsim matlab main page.
Alternatively you can import it directly by right clicking in the Current Folder frame in the Matlab - select source control - and insert the url: https://github.com/equinor/neqsimmatlab.git
2. Update the pathstring variable in pathNeqSim.m file
The pathNeqSim.m file needs to be set up with the correct path to the installation. The pathstring variable has to be set to the root directory where neqsimmatlab is on the local disk.
pathstring = 'C:\.......\neqsimmatlab\';
3. Set up the database connection Changing the database is only necessary if an external database will be used. By default neqsimmatlab uses the embedded parameter database (Derby database). If an external database will be used, the connection string to the database need to be modified in pathNeqSim.m:
neqsim.util.database.NeqSimDataBase.setDataBaseType("Derby");
neqsim.util.database.NeqSimDataBase.setConnectionString("jdbc:derby:classpath:......");
4. Run the pathNeqSim.m script
The script sets up the path to the local neqsim matlab installation and makes the neqsim java library (NeqSim.jar) available to Matlab. I also adds needed directories (example/lib/..) to the Matlab path.
5. Run an example script check that neqsimmatlab works correctly:
Run the ex2.m script in Matlab.