I want to set a time variable (from simulation time) to become one of the variables in equation

조회 수: 4 (최근 30일)
from the image above, i want to use simulation time as variable for changing reluctance value.
For example, if time of the simulation is set to be as variable X, i want to input X*85*5 for cross sectional area of reluctance block.
Help me solve this simple issue, but which i cannot figure out
Thank you.

답변 (1개)

Gillian Rosen
Gillian Rosen 2017년 4월 11일
Hi Jung-Woo, 
I understand that you would like to use the simulation time to change the cross-sectional area of a Reluctance block in your model.
Please note that it is not possible to change the parameters of a Simscape block during simulation (see https://www.mathworks.com/help/physmod/simscape/run-time-parameters.html for more information). However, as a workaround, you can use a Variable Reluctance block with a carefully constructed input signal. 
The Variable Reluctance block takes a physical signal as input, which it uses as the thickness of the section or air gap in its calculations. However, using the equations given in the block parameters, you can solve for the needed input value as a function of the cross-sectional area, and set the block parameter for the cross-sectional area to a dummy value of 1.
Once you have solved the system, you can use Clock and Gain blocks to obtain a signal that contains your desired input as a function of the cross-sectional area, then connect this signal to a Variable Reference block using a Simulink-PS Converter.
  댓글 수: 1
behnam jafari
behnam jafari 2019년 11월 11일
편집: behnam jafari 2019년 11월 11일
so is it absolutely a sure thing that this ( changing parameters of a simscape block ) cannot happen ?
because i've got the same problem ...
building block formulations with simulink blocks can be a good idea then as you referred ...
thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Magnetic Elements에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by