Modelling from Equations in Simulink
조회 수: 5(최근 30일)
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.
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.