Advanced Modelica language topics > Coupling Modelica and native Simcenter Amesim submodels
Advanced examples
adapter examples
As shown in the previous sections, the adapter components available in the Simcenter Amesim library can be used to connect Modelica-based models with the legacy (C-based) models found in Simcenter Amesim libraries. While this can be extremely useful for some kinds of modeling activities, it must be used with a careful understanding of the underlying system of equations. Modelica-based libraries and Simcenter Amesim’s legacy libraries come from inherently different modeling paradigms. Attempting to arbitrarily equate variables from one paradigm into variables from another can lead to unexpected results. For signal adapters, connection is straightforward, with independent signals flowing through model boundaries. For physical adapters however, coupled across and through quantities must be considered carefully to establish sound physical connections between Modelica and Simcenter Amesim models. In addition, representation details of across and through quantities vary from one paradigm to the other. For example, when attempting to connect two heterogeneous models, one must understand:
sign conventions, conventions sign
referential frame conventions (in particular their absolute or relative nature), and conventions referential frame
initialization conventions conventions initialization .
In the following sections, we will demonstrate ways in which adapters can safely handle cross-paradigm modeling. Next, situations where the above points must be considered very carefully will be illustrated. We will also briefly discuss underlying structural issues related to model partitioning that can impact system behavior. To conclude, a summary of these findings is collected into a set of guidelines.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Modelica_Platform/xid1020747 · retrieved 2026-07-17