EnriYo
EnriYo

Reputation: 21

How to install a new Modelica library in Dymola?

I would like to know:

  1. the most efficient way to install a library in Dymola, so that it appears in my list of libraries in File > Libraries.

  2. is it possible to have it preloaded in my package browser when I open Dymola, as for instance the Modelica Standard Library?

I would like to install the free library ExternData, using Dymola 2021.

Upvotes: 0

Views: 1412

Answers (1)

Hans Olsson
Hans Olsson

Reputation: 12507

Dymola 2021 (and later) has Tools>Library Management>Modelica Path where you can add the directory containing your external libraries.

To make libraries appear preloaded you have to add a libraryInfo.mos script in the corresponding library; you can look at Modelica Standard Library in the Dymola installation for inspiration.

The latter is described in more detail in the section "More about libraries and the building of menus of libraries and demo" page 200 in Dymola User Manual 1A.pdf.

Upvotes: 2

Related Questions