HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
Euler1DFunctions.c File Reference

Miscellaneous functions for the 1D Euler equations. More...

#include <math.h>
#include <basic.h>
#include <physicalmodels/euler1d.h>

Go to the source code of this file.

Functions

int Euler1DRoeAverage (double *uavg, double *uL, double *uR, void *p)
 

Detailed Description

Miscellaneous functions for the 1D Euler equations.

Author
Debojyoti Ghosh

Definition in file Euler1DFunctions.c.

Function Documentation

◆ Euler1DRoeAverage()

int Euler1DRoeAverage ( double *  uavg,
double *  uL,
double *  uR,
void *  p 
)

Compute the Roe-averaged state for the 1D Euler equations. This function just calls the macro _Euler1DRoeAverage_ and is not used by any functions within the 1D Euler 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.

Parameters
uavgThe computed Roe-averaged state
uLLeft state (conserved variables)
uRRight state (conserved variables)
pObject of type Euler1D with physics-related variables

Definition at line 16 of file Euler1DFunctions.c.

22 {
23  Euler1D *param = (Euler1D*) p;
24  _Euler1DRoeAverage_(uavg,uL,uR,param);
25  return(0);
26 }
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...
Definition: euler1d.h:273
#define _Euler1DRoeAverage_(uavg, uL, uR, p)
Definition: euler1d.h:169