implementations.sweeper_classes.verlet module

class verlet(params)[source]

Bases: sweeper

Custom sweeper class, implements Sweeper.py

Second-order sweeper using velocity-Verlet as base integrator

QQ

0-to-node collocation matrix (second order)

QT

0-to-node trapezoidal matrix

Qx

0-to-node Euler half-step for position update

qQ

update rule for final value (if needed)

compute_end_point()[source]

Compute u at the right point of the interval

The value uend computed here is a full evaluation of the Picard formulation (always!)

Returns:

None

integrate()[source]

Integrates the right-hand side

Returns:

containing the integral as values

Return type:

list of dtype_u

update_nodes()[source]

Update the u- and f-values at the collocation nodes -> corresponds to a single sweep over all nodes

Returns:

None