CBD.loopsolvers.solver module¶
Algebraic loops can be complex to solve. This module provides a base class for all loop solvers.
- class CBD.loopsolvers.solver.Solver(logger=None)[source]¶
Bases:
objectSuperclass that can solve algebraic loops.
- Parameters
logger (Logger) – The logger to use.
- checkValidity(path, component)[source]¶
Checks the validity of an algebraic loop.
- Parameters
path (str) – The path of the top-level block.
component (list) – The blocks in the algebraic loop.
- constructInput(component, curIt)[source]¶
Constructs input for the solver.
- Parameters
component (list) – The blocks in the algebraic loop.
curIt (int) – The current iteration of the simulation.
See also