|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Forward Euler method. More...
#include <basic.h>#include <arrayfunctions.h>#include <simulation_object.h>#include <timeintegration.h>Go to the source code of this file.
Functions | |
| int | TimeForwardEuler (void *ts) |
Forward Euler method.
Definition in file TimeForwardEuler.c.
| int TimeForwardEuler | ( | void * | ts | ) |
Advance the ODE given by
\begin{equation} \frac{d{\bf u}}{dt} = {\bf F} \left({\bf u}\right) \end{equation}
by one time step of size HyPar::dt using the forward Euler method given by
\begin{equation} {\bf u}^{n+1} = {\bf u}^n + \Delta t {\bf F}\left( {\bf u}^n \right) \end{equation}
where the superscript represents the time level, \(\Delta t\) is the time step size HyPar::dt, and \({\bf F}\left({\bf u}\right)\) is computed by TimeIntegration::RHSFunction.
| ts | Time integrator object of type TimeIntegration |
Definition at line 25 of file TimeForwardEuler.c.