|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the functions compute flux Jacobians for the 3D Navier-Stokes system. More...
#include <arrayfunctions.h>#include <mathfunctions.h>#include <matmult_native.h>#include <physicalmodels/navierstokes3d.h>Go to the source code of this file.
Functions | |
| int | NavierStokes3DJacobian (double *Jac, double *u, void *p, int dir, int nvars, int upw) |
| int | NavierStokes3DStiffJacobian (double *Jac, double *u, void *p, int dir, int nvars, int upw) |
Contains the functions compute flux Jacobians for the 3D Navier-Stokes system.
Definition in file NavierStokes3DJacobian.c.
| int NavierStokes3DJacobian | ( | double * | Jac, |
| double * | u, | ||
| void * | p, | ||
| int | dir, | ||
| int | nvars, | ||
| int | upw | ||
| ) |
Function to compute the flux Jacobian of the 3D Navier-Stokes equations, given the solution at a grid point. The Jacobian is square matrix of size nvar=5, and is returned as a 1D array (double) of 25 elements in row-major format.
| Jac | Jacobian matrix: 1D array of size nvar^2 = 25 |
| u | solution at a grid point (array of size nvar = 5) |
| p | object containing the physics-related parameters |
| dir | dimension (0 -> x, 1 -> y, 2 -> z) |
| nvars | number of vector components |
| upw | 0 -> send back complete Jacobian, 1 -> send back Jacobian of right(+)-moving flux, -1 -> send back Jacobian of left(-)-moving flux |
Definition at line 15 of file NavierStokes3DJacobian.c.
| int NavierStokes3DStiffJacobian | ( | double * | Jac, |
| double * | u, | ||
| void * | p, | ||
| int | dir, | ||
| int | nvars, | ||
| int | upw | ||
| ) |
Function to compute the Jacobian of the fast flux (representing the acoustic waves) of the 3D Navier-Stokes equations, given the solution at a grid point. The Jacobian is square matrix of size nvar=5, and is returned as a 1D array (double) of 25 elements in row-major format.
| Jac | Jacobian matrix: 1D array of size nvar^2 = 25 |
| u | solution at a grid point (array of size nvar = 5) |
| p | object containing the physics-related parameters |
| dir | dimension (0 -> x, 1 -> y, 2 -> z) |
| nvars | number of vector components |
| upw | 0 -> send back complete Jacobian, 1 -> send back Jacobian of right(+)-moving flux, -1 -> send back Jacobian of left(-)-moving flux |
Definition at line 53 of file NavierStokes3DJacobian.c.