implementations.problem_classes.FastWaveSlowWave_0D module¶
- class swfw_scalar(lambda_s=-1, lambda_f=-1000, u0=1)[source]¶
Bases:
ProblemThis class implements the fast-wave-slow-wave scalar problem fully investigated in [1]. It is defined by
\[\frac{d u(t)}{dt} = \lambda_f u(t) + \lambda_s u(t),\]where \(\lambda_f\) denotes the part of the fast wave, and \(\lambda_s\) is the part of the slow wave with \(\lambda_f \gg \lambda_s\). Let \(u_0\) be the initial condition to the problem, then the exact solution is given by
\[u(t) = u_0 \exp((\lambda_f + \lambda_s) t).\]- Parameters:
lambda_s (np.1darray, optional) – Part of the slow wave \(\lambda_s\).
lambda_f (np.1darray, optional) – Part of the fast wave \(\lambda_f\).
u0 (np.1darray, optional) – Initial condition of the problem.
References
- dtype_f¶
alias of
imex_mesh
- dtype_u¶
alias of
mesh