Build Custom Components Natively with Activate

João Marabisa
João Marabisa
Altair Employee
edited May 2021 in Community Q&A

Hello Community!

Today I’d like to share a recent request: Whether it would be possible to build custom components such as Resistor (R), Inductor (L), Capacitor (C) and others, with Activate natively (i.e., not using the built-in Modelica library), and if there is some documentation about it. The answer is yes, and I’ll briefly talk about two scenarios:

1 – Using Modelica Custom Component block, it is possible to use the source code of each componente and edit it depending on your purposes. Below there is a step-by-step:

image

We have a short training session discussing a little more about it (Approach Flexibility). Furthermore, on Activate Demo Browser there are some examples:

image

2 - If however, you are intending to build a library and do a bit more extensive Modelica programming and debugging, another option is to use OMEdit (free)  which is dedicated solely to Modelica, it has some Modelica programming features to that may help to develop the Modelica components. 

Once they are developed, you could create a Modelica library and then import that into Activate for use.

https://www.openmodelica.org/?id=78:omconnectioneditoromedit&catid=10:main-category

Of course, OMEdit does not have many of the other non-Modelica nice features that Activate. (Thanks @andyer  for this suggestion).

I hope this can be useful to you. ;)

Answers