|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Initialize time integration. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <basic.h>#include <arrayfunctions_gpu.h>#include <simulation_object.h>#include <timeintegration.h>Go to the source code of this file.
Functions | |
| int | TimeRHSFunctionExplicit (double *, double *, void *, void *, double) |
| int | TimeInitialize (void *s, int nsims, int rank, int nproc, void *ts) |
Initialize time integration.
Definition in file TimeInitialize.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.
| int TimeInitialize | ( | void * | s, |
| int | nsims, | ||
| int | rank, | ||
| int | nproc, | ||
| void * | ts | ||
| ) |
Initialize time integration: This function initializes all that is required for time integration.
| s | Array of simulation objects of type SimulationObject |
| nsims | number of simulation objects |
| rank | MPI rank of this process |
| nproc | number of MPI processes |
| ts | Time integration object of type TimeIntegration |
Definition at line 28 of file TimeInitialize.c.