Modelling from Equations in Simulink

조회 수: 5(최근 30일)
Scott Crimmons
Scott Crimmons 2013년 5월 15일
Hi,
Im new to Simulink and I am looking for help when building models from equations, has anybody got any advice as to the best place to start when tackling these problems? (ie, how do you identify how many integrators, gain blocks, sum juntins etc... that you need.)
take the following as an example of a tank level system with - one pump on the inlet (Kp1) - level of the tank (h1(t) - Outlet valve (Kv1)
h1(t) = 1/A*[Kp1(vt) - Kv1 h1(t)]
What is the best way to break this or any equation/formula up to produce a model in simulink. Many Thanks.

답변(2개)

Ryan G
Ryan G 2013년 5월 15일
Check out the modeling ODEs in Simulink blog post. Once you get started you can come back and ask more specific questions once you get stuck.

cr
cr 2013년 5월 15일
편집: cr 2013년 5월 15일
There is nothing like you will need this many blocks or you cannot exceed so many. All you need to do is to realise your logic right. Start with blocks that sound simple, and most of the blocks should be self-explanatory of what they do. For realising a differential eqn, rearrange it so that its of the form dx/dt = f(x), where f(x) can be dependent on other parameters not indicated. Next, get an integrator and call its output x. The input then would be dx/dt. Now use x (i.e. output of integ) to realise dx/dt using the diff eqn. You will end up with feedback signal(s). This is how you go about building a diff eqn from scratch. Another way would be to formulate the eqn in state-space and use state-space block. If you can do laplace transforms, you might be able to use TF / ZPK blocks too.

범주

Find more on General Applications in Help Center and File Exchange

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by