Altair Twin Activate® Challenge 5: Post-process simulation results
Altair Twin Activate is an environment for block-level diagram modeling and system-of-systems integration, useful for simulating at different levels of fidelity, from simple signal-based modeling to robust Multiphysics applications and digital twin solutions.
In this challenge, you will learn how you can post-process results in many ways using OML and Twin Activate’s Finalization Script, a tool for automating processes after a simulation has finished running.
Let’s consider a model we have used before, the simple mass-spring-damper system:
Which can be represented like this in Twin Activate:
After running this simulation, any further post-processing can be handled using the Finalization Script, which can be found in the Context Menu, in the Ribbon Toolbar at the top of the screen:
It is an OML script that features all the libraries available in Altair Compose® and will be automatically executed once the simulation is over.
Open the model attached and look at the instructions I’ve left in the comment of the finalization script. You will learn several useful tricks for post-processing and exporting results that will definetily make your life easier!
Tip: Have a look at the Signal Out block. This block takes its inputs from the diagram into the OML environment, giving you access to any signals you want.
Tip: You can type the name of any function in the OML Command Window and press F1 or right-click > Help on selection. This will take you to the help documentation for that specific OML function (and you can always go to the help homepage and use the search bar).
Level: Easy
Product Required: Twin Activate 2020 or later version (including Personal Edition).
The solution can be attached in the comment section of this post. The desired output format is a PNG file for each plot created.
The solution to Challenge Drive Inspire using Python in Compose can be found here.
If you would like to solve more challenges and get regular challenge release updates, Subscribe to the Altair Community Challenge forum.