HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Miscellaneous functions for the 3D Navier Stokes equations. More...
#include <stdio.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/navierstokes3d.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | NavierStokes3DRoeAverage (double *uavg, double *uL, double *uR, void *p) |
int | NavierStokes3DComputePressure (double *P, const double *const u, void *s) |
int | NavierStokes3DComputeTemperature (double *T, const double *const u, void *s) |
Miscellaneous functions for the 3D Navier Stokes equations.
Definition in file NavierStokes3DFunctions.c.
int NavierStokes3DRoeAverage | ( | double * | uavg, |
double * | uL, | ||
double * | uR, | ||
void * | p | ||
) |
Compute the Roe-averaged state for the 3D Navier Stokes equations. This function just calls the macro _NavierStokes3DRoeAverage_ and is not used by any functions within the 3D Navier Stokes module. However, it's necessary to define it and provide it to the the solver object (HyPar) so that it can then send it to interpolation functions for a characteristic-based reconstruction.
uavg | The computed Roe-averaged state |
uL | Left state (conserved variables) |
uR | Right state (conserved variables) |
p | Object of type NavierStokes3D with physics-related variables |
Definition at line 18 of file NavierStokes3DFunctions.c.
int NavierStokes3DComputePressure | ( | double * | P, |
const double *const | u, | ||
void * | s | ||
) |
Compute the pressure from the conserved solution on a grid
P | Array to hold the computed pressure (same layout as u) |
u | Array with the solution vector |
s | Solver object of type HyPar |
Definition at line 31 of file NavierStokes3DFunctions.c.
int NavierStokes3DComputeTemperature | ( | double * | T, |
const double *const | u, | ||
void * | s | ||
) |
Compute the temperature from the conserved solution on a grid
T | Array to hold the computed pressure (same layout as u) |
u | Array with the solution vector |
s | Solver object of type HyPar |
Definition at line 65 of file NavierStokes3DFunctions.c.