pyCBD.loopsolvers.solver module

Algebraic loops can be complex to solve. This module provides a base class for all loop solvers.

class pyCBD.loopsolvers.solver.Solver(logger=None)[source]

Bases: object

Superclass 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

solve()

solve(solverInput)[source]

Solves the algebraic loop.

Parameters

solverInput – The constructed input.

See also

constructInput()