pyrk.reactivity_insertion module

class pyrk.reactivity_insertion.ImpulseReactivityInsertion(timer, t_start=<Quantity(1.0, 'second')>, t_end=<Quantity(2.0, 'second')>, rho_init=<Quantity(0.0, 'delta_k')>, rho_max=<Quantity(1.0, 'delta_k')>)[source]

Bases: pyrk.reactivity_insertion.ReactivityInsertion

Returns an impulse with a width:

rho_max                 ________________
                       |                |
                       |                |
                       |                |
                       |                |
                       |                |
                       |                |
                       |                |
rho_init ______________|                |___________

                       t_start         t_end
f(x)[source]
class pyrk.reactivity_insertion.RampReactivityInsertion(timer, t_start=<Quantity(1.0, 'second')>, t_end=<Quantity(2.0, 'second')>, rho_init=<Quantity(0.0, 'delta_k')>, rho_rise=<Quantity(1.0, 'delta_k')>, rho_final=<Quantity(1.0, 'delta_k')>)[source]

Bases: pyrk.reactivity_insertion.ReactivityInsertion

Returns a ramp:

rho_rise
                              /|
                             / |
                            /  |
                           /   |
rho_final                 /    |__________
                         /
                        /
rho_init ______________/
                    t_start    t_end
f(x)[source]
slope()[source]
class pyrk.reactivity_insertion.ReactivityInsertion(timer)[source]

Bases: object

This is the default reactivity insertion object class from whence all others are derived.

The default is no external reactivity insertion:

rho = 0  __________________________________


        t0                                tf
f(x)[source]
reactivity(t_idx)[source]
class pyrk.reactivity_insertion.StepReactivityInsertion(timer, t_step=<Quantity(1.0, 'second')>, rho_init=<Quantity(0.0, 'delta_k')>, rho_final=<Quantity(1.0, 'delta_k')>)[source]

Bases: pyrk.reactivity_insertion.ReactivityInsertion

Returns a Heaviside step function:

rho_final               _____________________
                       |
                       |
                       |
                       |
                       |
                       |
rho_init ______________|

                      t_step
f(x)[source]