pathsim.solvers.bdf module
- class pathsim.solvers.bdf.BDF(*solver_args, **solver_kwargs)[source]
Bases:
ImplicitSolverBase class for the backward differentiation formula (BDF) integrators.
Notes
This solver class is not intended to be used directly
- x_0
internal ‘working’ initial value
- Type:
numeric, array[numeric]
- x
internal ‘working’ state
- Type:
numeric, array[numeric]
- opt
optimizer instance to solve the implicit update equation
- Type:
NewtonAnderson, Anderson, etc.
- buffer(dt)[source]
buffer the state for the multistep method
- Parameters:
dt (float) – integration timestep
- class pathsim.solvers.bdf.BDF2(*solver_args, **solver_kwargs)[source]
Bases:
BDFFixed-step 2nd order Backward Differentiation Formula (BDF).
Implicit linear multistep method. Uses the previous two solution points. A-stable, suitable for stiff problems. Uses BDF1 for the first step.
- Characteristics:
Order: 2
Implicit Multistep
Fixed timestep only
A-stable
- class pathsim.solvers.bdf.BDF3(*solver_args, **solver_kwargs)[source]
Bases:
BDFFixed-step 3rd order Backward Differentiation Formula (BDF).
Implicit linear multistep method. Uses the previous three solution points. A(alpha)-stable, suitable for stiff problems. Uses lower orders for startup.
- Characteristics:
Order: 3
Implicit Multistep
Fixed timestep only
A(alpha)-stable (\(\alpha \approx 86^\circ\))
- class pathsim.solvers.bdf.BDF4(*solver_args, **solver_kwargs)[source]
Bases:
BDFFixed-step 4th order Backward Differentiation Formula (BDF).
Implicit linear multistep method. Uses the previous four solution points. A(alpha)-stable, suitable for stiff problems. Uses lower orders for startup.
- Characteristics:
Order: 4
Implicit Multistep
Fixed timestep only
A(alpha)-stable (\(\alpha \approx 73^\circ\))
- class pathsim.solvers.bdf.BDF5(*solver_args, **solver_kwargs)[source]
Bases:
BDFFixed-step 5th order Backward Differentiation Formula (BDF).
Implicit linear multistep method. Uses the previous five solution points. A(alpha)-stable, suitable for stiff problems. Uses lower orders for startup.
- Characteristics:
Order: 5
Implicit Multistep
Fixed timestep only
A(alpha)-stable (\(\alpha \approx 51^\circ\))
- class pathsim.solvers.bdf.BDF6(*solver_args, **solver_kwargs)[source]
Bases:
BDFFixed-step 6th order Backward Differentiation Formula (BDF).
Implicit linear multistep method. Uses the previous six solution points. Not A-stable, stability region does not contain the entire left half-plane, limiting its use for highly stiff problems compared to lower-order BDFs. Uses lower orders for startup.
- Characteristics:
Order: 6
Implicit Multistep
Fixed timestep only
Not A-stable (stability angle approx \(18^\circ\))