how to calcuate derivate using simulink

19 visualizaciones (últimos 30 días)
nadeem
nadeem el 22 de Abr. de 2011
I am using derivate block of simulink. my first question is am i right in assuming that for any given function this block i.e. derivate block calcualtes the derivate of the given function with respect to time. If it is so , then for example if i have two variable pressure P and volume V then how can I find derivate of dP/dV using simulink. Any suggestion.

Respuestas (1)

Seth Popinchalk
Seth Popinchalk el 22 de Abr. de 2011
The derivative block computes a time based derivative, using a difference ratio (not an analytic derivative).
There is no block that computes the derivative of one signal relative to to another like you are looking for. You can use memory blocks (P(n) -> Memory -> P(n-1)), sums, and division to compute the dP/dV you are looking for.
dP/dV = {P(n)-P(n-1)}/{V(n)-V(n-1)}
The accuracy of this technique depends a great deal on the step sizes of the simulation, and how fast the signals are changing per step. Also, if you are using a variable step solve, consider making the equation discrete (fixed sample time) to avoid uncertainty about the effect of step size.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by