Initialize the allfdistribu function. More...
Public Member Functions | |
KelvinHelmholtzInstabilityInitialization (double const epsilon, double const mode_k) | |
Instantiate the initializer. | |
void | operator() (DFieldXY allfdistribu, DFieldXY allfdistribu_equilibrium) |
Initialise \( f_{eq}\) and \( f \). | |
Initialize the allfdistribu function.
Set the allfdistribu at \( f_{eq}(x, y) = \sin(y) \)
and \( f_0(x, y) = f_{eq}(x, y) + \varepsilon \cos(kx) \),
with \( \varepsilon \) an amplitude of perturbation and \( k \) mode equal to \( 2\pi \) divided by the length of the index range on \( x \).
|
inline |
Instantiate the initializer.
epsilon | \( \varepsilon \), the amplitude of perturbation. |
mode_k | \( k \), the perturbation mode. |
|
inline |
Initialise \( f_{eq}\) and \( f \).
allfdistribu | Field refering to the \( f \) function. |
allfdistribu_equilibrium | Field refering to the \( f_{eq} \) function. |