-
Notifications
You must be signed in to change notification settings - Fork 6
Dymola
In this section the basic steps of the installation process of the Dymola development environment are mentioned.
First the Dymola software should be installed. There are several different versions available. The different versions of Dymola come with different versions of the Modelica library. We recommend the Dymola 2017 FD01 which has Modelica v3.2.2 integrated and thus is compatible with the BuildingControlLib.
The next step is to enter your license in Dymola to use it without restrictions. For that you start Dymola and choose the tab Help, then License. In the new window you choose tab Setup. Depending on your license type you can enter the path to a license file or the address of a license server.
Furthermore it is required to have a suitable C compiler installed on your system. It is possible but not guaranteed that Dymola finds a suitable installed compiler automatically.
A list of possible C compilers is available here.
If you got an compilation error or you want to assure the right settings, after you installed a compiler, open Dymola and choose the Simulation tab, followed by the Setup icon for simulation setup. In the new window you will find the tab Compiler where the necessary settings can be done.
If your work depends on one or more libraries it is great relief to load all the essential libraries at the startup of Dymola. Therefore you have to build and run a script or configure and run an existing script. Existing scripts you can find at this places when using Windows 7 operating system:
C:\Users\<USERNAME>\AppData\Roaming\Dynasim\
There you will find one .mos file settings.mos
.
C:\Users\<USERNAME>\AppData\Roaming\Dynasim\
There you will find two .mos files setup.mos
and settings.mos
.
Inside the scripts you have to enter the following code for loading a library:
openModel(C:\PATH\TO\THE\LIBRARY\package.mo);
At least in Dymola 2012 the existing scripts where automatically executed at every startup, which made it really comfortable to enter the commands there. It seems in Dymola 2017 it is not possible any more. At least I have not found any file that is automatically executed by Dymola 2017 until now. If the mos script doesn't load automatically, create a link and put it on your desktop, then right click the file, choose Open with... and choose your preferred Dymola. Start Dymola always via this script, if you want the libraries to be loaded.
Claytex Blog - Getting started