One Quadrant Converters
Discrete One Quadrant Converter
- class gym_electric_motor.physical_systems.converters.FiniteOneQuadrantConverter(tau=1e-05, **kwargs)[source]
Bases:
FiniteConverter
- Key:
‘Finite-1QC’
- Switching States / Actions:
- 0: Transistor off.1: Transistor on.
- Action Space:
Discrete(2)
- Output Voltages and Currents:
- voltages: Box(0, 1, shape=(1,))currents: Box(0, 1, shape=(1,))
- Parameters:
tau – Discrete time step of the system in seconds
interlocking_time – Interlocking time of the transistors in seconds
- convert(i_out, t)[source]
The conversion function that converts the previously set action to an input voltage for the motor. This function has to be called at least at every previously defined switching time, because the input voltage for the motor might change at these times.
- i_sup(i_out)[source]
Calculate the current, the converter takes from the supply for the given output currents and the current switching state.
- reset()
Reset all converter states to a default.
- set_action(action, t)
Set the next action of the converter at the beginning of a simulation step in the system.
- action_space = Discrete(2)
gymnasium.Space that defines the set of all possible actions for the converter
- currents = Box(0.0, 1.0, (1,), float64)
gymnasium.Space that defines Minimum, Maximum and Dimension of possible output current of the converter
- property tau
Time of one simulation step in seconds.
- Type:
Float
- voltages = Box(0.0, 1.0, (1,), float64)
gymnasium.Space that defines Minimum, Maximum and Dimension of possible output voltage of the converter
Continuous One Quadrant Converter
- class gym_electric_motor.physical_systems.converters.ContOneQuadrantConverter(tau=0.0001, **kwargs)[source]
Bases:
ContDynamicallyAveragedConverter
- Key:
‘Cont1QC’
- Action:
Duty Cycle of the Transistor in [0,1].
- Action Space:
Box([0,1])
- Output Voltages and Currents:
- voltages: Box(0, 1, shape=(1,))currents: Box(0, 1, shape=(1,))
- Parameters:
tau – Discrete time step of the system in seconds
interlocking_time – Interlocking time of the transistors in seconds
- convert(i_out, t)
The conversion function that converts the previously set action to an input voltage for the motor. This function has to be called at least at every previously defined switching time, because the input voltage for the motor might change at these times.
- i_sup(i_out)[source]
Calculate the current, the converter takes from the supply for the given output currents and the current switching state.
- reset()
Reset all converter states to a default.
- set_action(action, t)
Set the next action of the converter at the beginning of a simulation step in the system.
- action_space = Box(0.0, 1.0, (1,), float64)
gymnasium.Space that defines the set of all possible actions for the converter
- currents = Box(0.0, 1.0, (1,), float64)
gymnasium.Space that defines Minimum, Maximum and Dimension of possible output current of the converter
- property tau
Time of one simulation step in seconds.
- Type:
Float
- voltages = Box(0.0, 1.0, (1,), float64)
gymnasium.Space that defines Minimum, Maximum and Dimension of possible output voltage of the converter