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(u, t, 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:
  • u (numeric, array[numeric]) – function ‘func’ input value

  • t (float) – evaluation time of function ‘func’

  • dt (float) – integration timestep

Returns:

err – residual error of the fixed point update equation

Return type:

float