pathsim.solvers.steadystate module

class pathsim.solvers.steadystate.SteadyState(*solver_args, **solver_kwargs)[source]

Bases: ImplicitSolver

Solver that finds the time independent steady state solution (DC) by forcing the derivatives to zero, i.e. f(x,u,t) = 0.

solve(f, J, dt)[source]

Solve for steady state by finding x where f(x,u,t) = 0 using the fixed point equation x = x + f(x,u,t).

Parameters:
  • f (array_like) – evaluation of function

  • J (array_like) – evaluation of jacobian of function

  • dt (float) – integration timestep

Returns:

err – residual error of the fixed point update equation

Return type:

float