|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Right-hand-side computation for explicit time integration. More...
#include <basic.h>#include <arrayfunctions_gpu.h>#include <mpivars.h>#include <hypar.h>#include <time.h>Go to the source code of this file.
Functions | |
| int | TimeRHSFunctionExplicit (double *rhs, double *u, void *s, void *m, double t) |
Right-hand-side computation for explicit time integration.
Definition in file TimeRHSFunctionExplicit.c.
| int TimeRHSFunctionExplicit | ( | double * | rhs, |
| double * | u, | ||
| void * | s, | ||
| void * | m, | ||
| double | t | ||
| ) |
This function computes the right-hand-side of the ODE given by
\begin{equation} \frac {{\bf u}}{dt} = {\bf F}\left({\bf u}\right) \end{equation}
for explicit time integration methods, i.e., where
\begin{equation} {\bf F}\left({\bf u}\right) = - {\bf F}_{\rm hyperbolic}\left({\bf u}\right) + {\bf F}_{\rm parabolic} \left({\bf u}\right) + {\bf F}_{\rm source} \left({\bf u}\right), \end{equation}
given the solution \({\bf u}\) and the current simulation time.
| rhs | Array to hold the computed right-hand-side |
| u | Array holding the solution |
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| t | Current simulation time |
Definition at line 30 of file TimeRHSFunctionExplicit.c.