- #1
cb951303
- 16
- 0
Hello, I'm a senior mechanical engineering student.
I'm trying to write an application that plots the system response for a given block diagram in frequency domain just for fun. Take the system shown on the attachment for example.
What I have in mind is to
I'm aware that this is not the right forum for this but bear with me for a second.
While thinking how to make a computer do block diagram reduction I've noticed that a block diagram is nothing but a system of linear equations.
For example, the block diagram in the attachment can be represented with 3 linear equations with 3 unknowns such as this:
[tex]C=\frac{B}{E}[/tex]
[tex]G=\frac{Y}{B}[/tex]
[tex]E=U - Y[/tex]
The problem is, that the terms of these equations are not numbers but transfer functions such as:
[tex]G = \frac{1}{2s + 1}[/tex]
Since numerical libraries like LAPACK and NumPy only accepts numeric values for the coefficient matrix how can I make a computer solve this system?
Thank you in advance.
I'm trying to write an application that plots the system response for a given block diagram in frequency domain just for fun. Take the system shown on the attachment for example.
What I have in mind is to
- find the Y/U transfer function with block diagram reduction (simplification)
- find it's differential equation
- separate it to first order ODEs
- solve the ODEs and plot Y(t)
I'm aware that this is not the right forum for this but bear with me for a second.
While thinking how to make a computer do block diagram reduction I've noticed that a block diagram is nothing but a system of linear equations.
For example, the block diagram in the attachment can be represented with 3 linear equations with 3 unknowns such as this:
[tex]C=\frac{B}{E}[/tex]
[tex]G=\frac{Y}{B}[/tex]
[tex]E=U - Y[/tex]
The problem is, that the terms of these equations are not numbers but transfer functions such as:
[tex]G = \frac{1}{2s + 1}[/tex]
Since numerical libraries like LAPACK and NumPy only accepts numeric values for the coefficient matrix how can I make a computer solve this system?
Thank you in advance.