HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Pre-step function for 2D Navier Stokes equations. More...
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <matmult_native.h>
#include <physicalmodels/navierstokes2d.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | NavierStokes2DPreStep (double *u, void *s, void *m, double waqt) |
Pre-step function for 2D Navier Stokes equations.
Definition in file NavierStokes2DPreStep.c.
int NavierStokes2DPreStep | ( | double * | u, |
void * | s, | ||
void * | m, | ||
double | waqt | ||
) |
Pre-step function for the 2D Navier Stokes equations: This function is called at the beginning of each time step.
\begin{equation} A_f\left({\bf u}\right) = R\left({\bf u}\right)\Lambda_f\left({\bf u}\right)L\left({\bf u}\right) \end{equation}
where \(R\) and \(L\) are the matrices of right and left eigenvectors, and,\begin{equation} \Lambda_f = diag\left[0,0,u+c,u-c \right] \end{equation}
with \(c\) being the speed of sound.u | Solution vector |
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
waqt | Current simulation time |
Definition at line 33 of file NavierStokes2DPreStep.c.