Iterative Time Solver Interface (i_iterative_time_solver)¶
- class pypint.solvers.i_iterative_time_solver.IIterativeTimeSolver(*args, **kwargs)[source]¶
Bases: builtins.object
Basic interface for iterative time solvers.
- init(problem, **kwargs)[source]¶
Initializes the solver with a given problem and options.
Parameters: - problem (IProblem) – The problem this solver should solve.
- integrator (IntegratorBase) – Integrator to be used by this solver.
- threshold (ThresholdCheck) – (optional) see threshold
- run(core, **kwargs)[source]¶
Applies this solver.
Parameters: solution_type (tuple of two class) – Tuple of two classes specifying the solution type and underlying solution storage data type. The first item must be a class derived off ISolution and the second a class derived off ISolutionData. Returns: solution – The solution of the problem. Return type: ISolution
- __weakref__¶
list of weak references to the object (if defined)
- integrator[source]¶
Read-only accessor for the used integrator
Returns: integrator Return type: IntegratorBase
- problem[source]¶
Accessor for the stored problem.
Returns: stored problem – Stored problem after call to init() or None if no problem was initialized. Return type: IProblem or None
- state[source]¶
Read-only accessor for the sovler’s state
Returns: state Return type: ISolverState
- threshold[source]¶
Accessor for threshold check of this solver.
Depending on the solver’s algorithm the threshold is used in multiple ways to check for termination conditions.
Parameters: threshold (ThresholdCheck) – Desired threshold. Returns: threshold – Stored and used threshold. Return type: ThresholdCheck