Can I define the initial condition at a nonzero point using Simulink integator?

조회 수: 2 (최근 30일)
Si So
Si So 2021년 1월 24일
답변: Paul 2021년 1월 24일
Hi, I'd like to define an initial condition for an integrator in simulink.
The integrator block can define y(0)=0.
but I need y(1)=0
is there any solution to define such this IC?
The solution of many ODES is unknown at zero, like Cauchy Euler equations.
So that they define the initial condition at a nonzero point to obtain the constants.
Thanks.
  댓글 수: 6
Si So
Si So 2021년 1월 24일
someone recommended me to use a delay block, but a delay block cannot be attached to an integrator
Paul
Paul 2021년 1월 24일
I don't know why a delay block can't be attached to an integrator, but I also don't know that would help.

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

답변 (1개)

Paul
Paul 2021년 1월 24일
Look at using the Start Time parameter on the Solver Pane (link). As best I can tell, it will do exactly what you want; initial condtions applicable at the Start Time, other time dependent signals properly computed as well). However, I did notice that Scopes always start the time axis at zero, though there is a clue in the lower right about the Offset. Don't know why they don't just add the Offset to the time axis. But other sim outputs, like To Workspace have the first element in the time vector as the Start Time.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by