Euler Solver
- class gym_electric_motor.physical_systems.solvers.EulerSolver(nsteps=1)[source]
Bases:
OdeSolver
Solves a system of differential equations of first order for a given time step with linear approximation.
- Parameters:
nsteps (int) – Number of cycles to calculate for each iteration. Higher steps make the system more accurate, but take also longer to compute.
- set_f_params(*args)
Set further arguments for the systems function call like input quantities.
- Parameters:
args (list) – Additional arguments for the next function calls.
- set_initial_value(initial_value, t=0)
Set the new initial system state after reset.
- set_system_equation(system_equation, jac=None)
Setting of the systems equation.
- property t
Returns: float: Current system time t
- property y
Returns: float: Current system state y