Are S-Functions compatible with Simscape or other Physical Modeling Tools?

6 visualizaciones (últimos 30 días)
I would like to develop my own custom blocks to interact with SimScape blocks and associated physical modeling tools (SimMechanics, SimHydraulics, etc). I would like to know if S-Functions can be written to work with these products.

Respuesta aceptada

Steve Miller
Steve Miller el 13 de Dic. de 2018
Editada: MathWorks Support Team el 17 de Nov. de 2022
You can connect blocks created from S-Functions to Simscape networks. The interface is done via Simulink signals. This will be OK for certain types of models or effects (calculating a spring force, for example). For others, it will introduce an algebraic loop which you will have to break using a transfer function or a unit delay.
If at all possible, you should consider using the Simscape language or assembling your component from the Foundation library. This will ensure you have a block that can be easily connected into your physical model, will permit Simscape to use symbolic methods to reduce the equations, and provide good diagnostics during simulation.
You can find out more about the Simscape Language here:
--Steve

Más respuestas (0)

Categorías

Más información sobre Physical Units en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

Aún no se ha introducido una versión.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by