v = sine wave, how to realize v^2 in simulink ?

조회 수: 4 (최근 30일)
Harry_108
Harry_108 2015년 5월 11일
댓글: Mischa Kim 2015년 5월 11일
Hi,
I'm relatively new to the Simulink world.
I want to simulate a force (output) which changes its value according to following equation.
Fx = G * V^2;
where G is a simple gain block.
and V is the AC voltage.
the block diagram looks some thing like this
sine wave -----> ?????? --------> Gain block ---------> Force
I don't understand how can i realize Voltage sqaure block ??????
regards,
Harry

답변 (1개)

Mischa Kim
Mischa Kim 2015년 5월 11일
편집: Mischa Kim 2015년 5월 11일
Harry, you could use a multiply block where both inputs are connected to the voltage signal.
Alternatively you can use a user-defined functions block, which looks like this:
To be found in: Simulink library browser > Simulink > User-Defined Functions
  댓글 수: 2
Harry_108
Harry_108 2015년 5월 11일
thanks Mischa,
previously I have used a math square function but i was not sure, if it's correct.
Mischa Kim
Mischa Kim 2015년 5월 11일
It is. Most likely it is the same block as the one I suggested. Double-click the User-Defined Functions block enter u^2 in the text box and you'll get the block you are showing in your model.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by