pymor.models.examples
¶
Module Contents¶
- pymor.models.examples.heat_equation_example(grid_intervals=50, nt=50)[source]¶
Return heat equation example with a high-conductivity and two parametrized channels.
Parameters
- grid_intervals
Number of intervals in each direction of the two-dimensional
RectDomain
.- nt
Number of time steps.
Returns
- fom
Heat equation problem as an
InstationaryModel
.
- pymor.models.examples.msd_example(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 [GPBvdS12].
Parameters
- n
The order of the model.
- m
The number or inputs and outputs 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 array
A, ifas_lti
isTrue
.- B
The LTI
NumPy array
B, ifas_lti
isTrue
.- C
The LTI
NumPy array
C, ifas_lti
isTrue
.- D
The LTI
NumPy array
D, ifas_lti
isTrue
.- J
The pH
NumPy array
J, ifas_lti
isFalse
.- R
The pH
NumPy array
R, ifas_lti
isFalse
.- G
The pH
NumPy array
G, ifas_lti
isFalse
.- P
The pH
NumPy array
P, ifas_lti
isFalse
.- S
The pH
NumPy array
S, ifas_lti
isFalse
.- N
The pH
NumPy array
N, ifas_lti
isFalse
.- E
The LTI
NumPy array
E, ifas_lti
isTrue
, or the pHNumPy array
E, ifas_lti
isFalse
.
- pymor.models.examples.penzl_example()[source]¶
Return Penzl’s example.
Returns
- fom
Penzl’s FOM example as an
LTIModel
.
- pymor.models.examples.thermal_block_example()[source]¶
Return 2x2 thermal block example.
Returns
- fom
Thermal block problem as a
StationaryModel
.