implementations.sweeper_classes.imex_1st_order_mass module

class imex_1st_order_mass(params)[source]

Bases: imex_1st_order

Custom sweeper class, implements Sweeper.py

First-order IMEX sweeper using implicit/explicit Euler as base integrator, with mass or weighting matrix

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 unless do_full_update==False

Returns:

None

compute_residual(stage=None)[source]

Computation of the residual using the collocation matrix Q

Parameters:

stage (str) – The current stage of the step the level belongs to

update_nodes()[source]

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

Returns:

None