# Modelling from Equations in Simulink

13 visualizzazioni (ultimi 30 giorni)
Scott Crimmons il 15 Mag 2013
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.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (2)

Ryan G il 15 Mag 2013
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.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

cr il 15 Mag 2013
Modificato: cr il 15 Mag 2013
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.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su General Applications in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by