필터 지우기
필터 지우기

Editing Source Code for Simscape Components?

조회 수: 10 (최근 30일)
YY
YY 2021년 3월 1일
답변: Dongyue 2022년 11월 18일
Hi All,
I have a question regarding the source code for a Simscape Mechanical component: Translational Damper. Right now my Translational Damper in the Simscape model has 1 parameter only, which allows me to enter a damping coefficient.
Once I open the source code, I get a couple lines of code basically calculating the force transmitted by the damper with the given damping coefficient.
However in my model, I would like to have different damping coefficient based on the magnitude of the translational acceleration. Is it possible to add an acceleration variable in the source code and apply that to my damper?
I found a faultable translational damper which allows me to customize various parameters for fault conditions. I guess this is the one I need but I cannot find it in the library? The faultable one is linked below:
Thank you all in advance,
YY

답변 (1개)

Dongyue
Dongyue 2022년 11월 18일
Hi YY,
You do not have to change the source code in this case.
Please go through the link below for details about tunable parameters for Simulink blocks.
Besides, you can also create/customized your own block, please check the following link for more detail:
Best,
Dongyue

카테고리

Help CenterFile Exchange에서 Creating Custom Components and Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by