Hello, I am Karim Nassar with Siemens PLM Software.
Today, I’m going to introduce the Modelica capabilities of Simcenter Amesim.
With our system simulation software,
you can benefit from a coexistence of both the causal and a-causal paradigms within the same environment.
This combines the strengths of our proven standard libraries,
and also opens the door towards the flexibility afforded by the Modelica language.
For Simcenter Amesim users with Modelica know-how,
this feature brings the ability to capitalize on all their expertise,
while taking advantage of compatibility with the entirety of the Simcenter Amesim platform.
Simcenter Amesim comes with the Modelon Optimica Compiler Toolkit built-in as standard.
This brings full support for version 3.2.2
of the Modelica Standard Library,
in addition to an increased robustness
of all models containing Modelica components.
Let’s take a look at how it works.
As a first step, you can create a Simcenter Amesim model
as you usually would,
like for instance by adding a statechart
and connecting it to other standard components.
To start creating or editing Modelica models,
first go to the Tools menu
and select the Modelica Editor entry
to open our dedicated tool.
In this tool, you can open and navigate
through all your own Modelica models or packages.
Simcenter Amesim also embeds a dedicated Modelica library
which enables Modelica and Simcenter Amesim models
to share information and properties.
Some components available in the Simcenter Amesim Modelica package
enable you to automatically generate some dedicated ports
(like signal, electrical, thermal or mechanical ones)
on the exported Modelica component.
This greatly extends system configuration possibilities between both models.
The Modelica code is editable directly through the Text view if needed,
with some advanced features like code folding,
syntax highlighting and so on.
Here, the name of each added block instance
is changed to reflect the connected component.
We can then directly connect the signal components to their Modelica nodes using the Diagram view.
On the Simcenter Amesim side,
we need to define some specific electrical connections
where some information is exchanged
like the voltage or the current.
Using the combination of standard MSL and specific components
allows us to create electrical ports for the Modelica icon in the sketch.
You need to add the component to the Modelica diagram
and define the connection using the code.
Here we can find the inputs or outputs declared in the Modelica component
by using the Documentation view.
Use this information to declare the right connection equations in the Modelica code.
It's time to make the Modelica model available in Simcenter Amesim.
We right click on the Modelica model
and select the "Add to active Simcenter Amesim model" contextual menu entry.
The model is automatically generated as an FMU,
then imported,
after which the corresponding Modelica block is created.
The Modelica icon has been generated with respect to the previously defined specific ports,
which we can check using the external variables widget.
Then, we can connect the Simcenter Amesim standard components to the Modelica one.
The Modelica component’s parameters and variables
are available in the parameter mode
(using the Parameter or Variable Contextual views),
which let users modify internal Modelica parameters
without editing the Modelica code itself.
The parameters of the different Modelica components are grouped for more clarity.
Let's switch to simulation mode,
compile the Simcenter Amesim model
and modify run parameters.
All results and post-processing tools,
along with other Simcenter Amesim capabilities
like plot configurations or the statechart environment
are still usable when using the variables from the Modelica components,
such as the transducer current.
In conclusion, Simcenter Amesim reinforces its interoperability
allowing users to create or reuse Modelica models
within our powerful modeling environment.
Thank you for watching.
For more information, please visit our website.