I want to set a time variable (from simulation time) to become one of the variables in equation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
Gillian Rosen
el 11 de Abr. de 2017
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 comentario
behnam jafari
el 11 de Nov. de 2019
Editada: behnam jafari
el 11 de Nov. de 2019
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
Ver también
Categorías
Más información sobre Magnetic Elements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!