|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to compute the right-hand-side for explicit time integration. More...
#include <stdlib.h>#include <basic.h>#include <arrayfunctions.h>#include <mpivars_cpp.h>#include <simulation_object.h>#include <petscinterface.h>Go to the source code of this file.
Macros | |
| #define | __FUNCT__ "PetscRHSFunctionExpl" |
Functions | |
| PetscErrorCode | PetscRHSFunctionExpl (TS ts, PetscReal t, Vec Y, Vec F, void *ctxt) |
Function to compute the right-hand-side for explicit time integration.
Definition in file PetscRHSFunctionExpl.cpp.
| #define __FUNCT__ "PetscRHSFunctionExpl" |
Definition at line 16 of file PetscRHSFunctionExpl.cpp.
| PetscErrorCode PetscRHSFunctionExpl | ( | TS | ts, |
| PetscReal | t, | ||
| Vec | Y, | ||
| Vec | F, | ||
| void * | ctxt | ||
| ) |
Compute the right-hand-side (RHS) for the explicit time integration of the governing equations: The spatially discretized ODE can be expressed as
\begin{equation} \frac {d{\bf U}} {dt} = {\bf F}\left({\bf U}\right). \end{equation}
This function computes \({\bf F}\left({\bf U}\right)\), given \({\bf U}\).
Note:
| ts | Time integration object |
| t | Current simulation time |
| Y | State vector (input) |
| F | The computed right-hand-side vector |
| ctxt | Object of type PETScContext |
Definition at line 36 of file PetscRHSFunctionExpl.cpp.