Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download the Modelica Standard Library and extract it.
  2. Open a project in which you want to use the Modelica library components.
  3. In the top-left corner of the modeling tool, click the File > Import From > Modelica Library.
  4. Select the ModelicaStandardLibrary > Modelica folder from your file system.
  5. Click Import
    The Modelica Standard Library is imported. See the following figure. All packages with their structure is created in the Containment tree and types are placed in corresponding packages. Note, that file names may do not match with the element names and the file structure may do not correspond to the location in the directory. The package structure is the same as Modelica package structure. 

    Note

    In order to to avoid the import of Modelica Standard Library in each project, you can save it as a project and reuse in other projects. For this, do the following:

    1. Share project data >>
    2. Use other projects in a project >>




Using Modelica libraries

Let's say we need to use OpenHydraulics modelica library components in a project. Both Modelica Standard Library and OpenHydraulics library must be imported since some components from OpenHydraulics library have references to standard library. 

...