pymordemos.phlti¶
Module Contents¶
- pymordemos.phlti.main(n: int = Argument(100, help='Order of the mass-spring-damper system.'), m: int = Argument(2, help='Number of inputs and outputs of the mass-spring-damper system.'), max_reduced_order: int = Argument(20, help='The maximum reduced order (at least 2). Every even order below is used.'))[source]¶
- pymordemos.phlti.msd(n=6, m=2, m_i=4, k_i=4, c_i=1, as_lti=False)[source]¶
Mass-spring-damper model as (port-Hamiltonian) linear time-invariant system.
Taken from [GPBvandSchaft12].
Parameters
- n
The order of the model.
- m_i
The weight of the masses.
- k_i
The stiffness of the springs.
- c_i
The amount of damping.
- as_lti
If
True, the matrices of the standard linear time-invariant system are returned. Otherwise, the matrices of the port-Hamiltonian linear time-invariant system are returned.
Returns
- A
The LTI
NumPy arrayA, ifas_ltiisTrue.- B
The LTI
NumPy arrayB, ifas_ltiisTrue.- C
The LTI
NumPy arrayC, ifas_ltiisTrue.- D
The LTI
NumPy arrayD, ifas_ltiisTrue.- J
The pH
NumPy arrayJ, ifas_ltiisFalse.- R
The pH
NumPy arrayR, ifas_ltiisFalse.- G
The pH
NumPy arrayG, ifas_ltiisFalse.- P
The pH
NumPy arrayP, ifas_ltiisFalse.- S
The pH
NumPy arrayS, ifas_ltiisFalse.- N
The pH
NumPy arrayN, ifas_ltiisFalse.- E
The LTI
NumPy arrayE, ifas_ltiisTrue, or the pHNumPy arrayE, ifas_ltiisFalse.