-
Notifications
You must be signed in to change notification settings - Fork 11
/
loadTransiEnt.mos
34 lines (28 loc) · 1.38 KB
/
loadTransiEnt.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// define local paths (absolute paths with front slashes)
repopath="ADD_YOUR_PATH_TO_TRANSIENT_HERE";
resultpath="ADD_YOUR_PATH_FOR_RESULTS_HERE";
// Some recommended options
Advanced.ManhattanizeConnection = true;
Advanced.MaxLineLength=1000;
OutputCPUtime = true;
Advanced.DefaultStoreAsOneFile=false;
Advanced.SmartConnect=false;
// Define units
RunScript("$DYMOLA/insert/displayunit.mos", true);
RunScript(repopath + "/TransiEnt/Scripts/loadTransiEntUnits.mos", true);
// ==== Load frequently used libraries:
//
openModel(repopath + "/ClaRa/TILMedia 1.8.1 ClaRa/package.mo");
openModel(repopath + "/ClaRa/ClaRa/package.mo");
openModel(repopath + "/TransiEnt/package.mo");
// ==== Set environtment variables:
//
Modelica.Utilities.System.setEnvironmentVariable("workingdir", resultpath);
Modelica.Utilities.System.setEnvironmentVariable("startupscript", repopath + "/loadTransiEnt.mos");
Modelica.Utilities.System.setEnvironmentVariable("public-data", repopath + "/TransiEnt/Tables/");
Modelica.Utilities.System.setEnvironmentVariable("private-data", repopath + "/TransiEnt/Tables/");
Modelica.Utilities.System.setEnvironmentVariable("superstructure-tables", repopath+"/TransiEnt/Tables/superstructure/Tables/");
Modelica.Utilities.System.setEnvironmentVariable("superstructure-input", repopath+"/TransiEnt/Tables/superstructure/RegionInformation/")
// ==== Change working directory:
//
cd(resultpath)