rbinvariantslib.invariants Module

Numerical calculation of adiabatic invariants.

Functions

calculate_K(model, starting_point[, ...])

Calculate the third adiabatic invariant, K.

calculate_LStar(model, starting_point[, ...])

Calculate the third adiabatic invariant, L*

Classes

CalculateKResult(K, Bm, Bmin, ...)

Class to hold the return value of calculate_K().

CalculateLStarResult(LStar, ...)

Class to hold the return value of calculate_LStar().

FieldLineTraceInsufficient

Raised when a field line trace is performed but the result is empty or is too small.

DriftShellSearchDoesntConverge

Raised when search to determine drift shell doesn't converge

DriftShellLinearSearchDoesntConverge

Raised when linear search to determine the drift shell doesn't converge.

DriftShellBisectionDoesntConverge

Raised when bisection serach to determine the drift shell doesn't converge.

Class Inheritance Diagram

Inheritance diagram of rbinvariantslib.invariants.CalculateKResult, rbinvariantslib.invariants.CalculateLStarResult, rbinvariantslib.invariants.FieldLineTraceInsufficient, rbinvariantslib.invariants.DriftShellSearchDoesntConverge, rbinvariantslib.invariants.DriftShellLinearSearchDoesntConverge, rbinvariantslib.invariants.DriftShellBisectionDoesntConverge