External simulation: Languages and tools: SysML vs SysPhS vs Modelica vs Simulink

Gallery
Tutorial
Again, please don't be over-whelmed by all of the languages and tools presented here, we are going to walk through them one-by-one, and you don't usually have to deal with them all at once when you commence your SysML/MBSE simulation journey:
Click on the image to view it full size

There is a compelling need when using Model-Based Systems Engineering (MBSE) and Systems Modeling Language v1 (SysML®) to simulate and compare. While there is a lot you can do with tools such as Magic Model Analyst® (Cameo Simulation Toolkit®) (including StateMachine and Activity simulations, and trade-off studies using SysML Parametrics), for some tasks you'll probably eventually need some degree of integration with external simulation languages and tools.

OMG SysPhS (the SysML Extension for Physical Interaction and Signal Flow Simulation), is an extension of SysML that acts as a bridge between SysML models and the powerful Modelica and Simulink languages.

Both Modelica (from the Modelica Open Source Consortium) and Simulink (from Mathworks, developers of MATLAB) have large user communities employing them for a wide range of industrial-strength and mission-critical applications for electrical engineering, mechanical engineering, mechatronics, robotics, physics, aeronautics, etc.

Most (but not all) of what you can do in Simulink+StateFlow+Simscape you can also do in Modelica (and mostly also vice versa). However, in this trail we'll focus only on the Modelica side of the story.

There are a lot of Modelica-based tools, and comparing their pros and cons is not easy. Here, we've indicated just four:

  1. OpenModelica: It's a "rite of passage" in the Modelica community to at least try this tool. This may be all you need initially.
  2. Wolfram SystemModeler: integrates with the brilliantly powerful Wolfram Mathematica and its "symbolic" Wolfram computation language.
  3. MapleSim: integrates with the brilliantly powerful Maple and its "symbolic" computation language.
  4. 3DS Dymola (from Dassault Systèmes).

All of these commercial vendors - Wolfram, Maplesoft, Dassault Systèmes - are heavily involved with the Modelica language specification, and have highly compliant tools.

One reason you might wish to eventually step up to SystemModeler or MapleSim is their integrations with their awesome symbolic algebra mathematics engines, which are accessible from Modelica components in their respective tools.

Note also that if you are working with SysML Parametrics constraint calculations in the MagicDraw SysML Plugin or Magic Cyber-Systems Engineer ® (Cameo Systems Modeler®) you can also delegate to Maple or Mathematica for more advanced maths calculations than the so-called built-in maths can handle.

Of course, Dassault Systèmes (developers of 3DS Dymola) now also own No Magic (developers of MagicDraw/Cameo) so it will be interesting to see how they contribute to the SysPhS effort for SysML.

If you look carefully at the main external Modelica documentation site you'll see you can actually access the Modelica standard library documentation as generated for each of OpenModelica, Dymola, SystemModeler, and MapleSim using a pulldown menu.

If you'd like to see how to export to Modelica in the MagicDraw SysML Plugin or Magic Model Analyst® (Cameo Simulation Toolkit®) visit this slide trail:

Summary of tools (with external links)

To get started with Model-Based Systems Engineering (MBSE) with Systems Modeling Language v1 (SysML®) use:
That may be all you need until you've cut your teeth on MBSE with SysML
To perform internal StateMachine and/or Activity simulations and dynamic execution of SysML Parametrics constraint equations within those tools add on:

ADVANCED OPTION: If you are doing a lot of StateMachine and Activity simulation consider getting also:

ADVANCED OPTION: If you are doing a lot of SysML Parametrics constraint mathematics calculations consider getting also one of these powerful commercial symbolic maths engines:

To perform additional external simulations of signal flows and physical interactions in MagicDraw/Cameo, load the SysPhSLibrary.mdzip then:

For Modelica:

For Simulink (the Mathworks family of products):
— END OF TRAIL —

You may wish to visit one of these tutorials next:

Visit more Systems Modeling Language v1 (SysML®) tutorial trails here.
Visit also these screencast tutorial videos

Please email or phone Webel IT Australia on +61 405 029 008 to arrange On-Site, Off-Site, or Live Online remote web training seminars and workshops.
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)