Generic Simulation Modules¶

class
pymoskito.generic_simulation_modules.
LinearStateSpaceModel
(settings)[source]¶ The state space model of a linear system.
The parameters of this model can be provided in form of a file whose path is given by the setting
config file
. This path should point to a pickled dict holding the following keys: system:
 An Instance of
scipy.signal.StateSpace
(from scipy) representing the system,  op_inputs:
 An arraylike object holding the operational point’s inputs,
 op_outputs:
 An arraylike object holding the operational point’s outputs.

class
pymoskito.generic_simulation_modules.
ODEInt
(settings)[source]¶ Wrapper for ode_int from Scipy project

class
pymoskito.generic_simulation_modules.
ModelInputLimiter
(settings)[source]¶ ModelInputLimiter that limits the model input values.
 Settings:
 Limits: (List of) list(s) that hold (min, max) pairs for the corresponding input.

class
pymoskito.generic_simulation_modules.
Setpoint
(settings)[source]¶ Provides setpoints for every output component.
If the output is not scalar, just add more entries to the list. By querying the differential order from the controller (if available) the required derivatives are given.
Note
Keep in mind that while this class provides zeros for all derivatives of the desired value, they actually strive to infinity for .

class
pymoskito.generic_simulation_modules.
HarmonicTrajectory
(settings)[source]¶ This generator provides a scalar harmonic sinus signal with derivatives up to order n

class
pymoskito.generic_simulation_modules.
SmoothTransition
(settings)[source]¶ provides (differential) smooth transition between two scalar states

class
pymoskito.generic_simulation_modules.
LinearStateSpaceController
(settings)[source]¶ A controller that is based on a state space model of a linear system.
This controller needs a linear statespace model, just as the
LinearStateSpaceModel
. The file provided inconfig file
should therefore contain a dict holding the entries:model
,op_inputs
andop_outputs
.If poles is given (differing from None ) the statefeedback will be computed using
pymoskito.place_siso()
. Furthermore an appropriate prefilter is calculated, which establishes stationary attainment of the desired output values.

class
pymoskito.generic_simulation_modules.
DeadTimeSensor
(settings)[source]¶ Sensor that adds a measurement delay on chosen states