turn Matlab code involving PDE toolkit into Simscape component

조회 수: 4 (최근 30일)
Giulia Ulpiani
Giulia Ulpiani 2019년 7월 23일
답변: Kavya Vuriti 2019년 8월 6일
Good morning,
I have a code that depicts the behavior of an SMA material (including thermal and mechanical models, both developed with the PDE toolkit).
Now, since the PDE toolkit has some limitations in terms of 3d geometry when it comes to heat conduction between specifically-shaped solids, I was wondering if I could turn my code into a custom component in Simscape, even though it involves the PDE toolkit...
Is it possible? Any suggestion on how to integrate the code?
Thank you very much,
Giulia

답변 (1개)

Kavya Vuriti
Kavya Vuriti 2019년 8월 6일
If the existing domains in the Simscape doesn’t support the required functionality, you can try defining a new physical domain in Simscape environment and can write a component file in .ssc format and then create a Simulink custom component using the component file.
Another possible workaround could be creating a MATLAB Function block which integrates a MATLAB code with simulink block and use a SP-Simulink Converter block to convert the Simulink signal to physical signal if you intend to use it in Simscape.
Refer the following link for more information on creating custom Simscape blocks: https://www.mathworks.com/help/physmod/simscape/lang/generating-custom-blocks-from-simscape-component-files.html

카테고리

Help CenterFile Exchange에서 Composite Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by