HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Euler1D Struct Reference

Structure containing variables and parameters specific to the 1D Euler equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D Euler equations. More...

#include <euler1d.h>

Data Fields

double gamma
 
double grav
 
int grav_type
 
double * grav_field
 
double * fast_jac
 
double * solution
 
char upw_choice [_MAX_STRING_SIZE_]
 
int(* SourceUpwind )(double *, double *, double *, double *, int, void *, double)
 

Detailed Description

Structure containing variables and parameters specific to the 1D Euler equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D Euler equations.

Definition at line 273 of file euler1d.h.

Field Documentation

double gamma

Ratio of heat capacities ( \(\gamma\))

Definition at line 274 of file euler1d.h.

double grav

acceleration due to gravity

Definition at line 275 of file euler1d.h.

int grav_type

type of gravitational field (0 is isothermal with constant potential, 1 is isothermal with sinusoidal potential)
See:

  • Xing, Y., Shu, C.-W., "High Order Well-Balanced WENO Scheme for the Gas Dynamics Equations Under Gravitational Fields", Journal of Scientific Computing, 54, 2013, pp. 645-662. http://dx.doi.org/10.1007/s10915-012-9585-8

Definition at line 286 of file euler1d.h.

double* grav_field

Array to store the gravity potential field

Definition at line 288 of file euler1d.h.

double* fast_jac

Array to store the linearized fast-waves Jacobian over the whole domain

Definition at line 289 of file euler1d.h.

double* solution

Array to store the reference solution for linearization

Definition at line 290 of file euler1d.h.

char upw_choice[_MAX_STRING_SIZE_]

Choice of upwinding scheme.

See Also
_ROE_,_LLF_,_RF_,_SWFS_

Definition at line 291 of file euler1d.h.

int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)

Function pointer to the function that computes the "upwinding" step in source term computation. To understand the implementation of the gravitational source terms, see:

  • Xing, Y., Shu, C.-W., "High Order Well-Balanced WENO Scheme for the Gas Dynamics Equations Under Gravitational Fields", Journal of Scientific Computing, 54, 2013, pp. 645-662. http://dx.doi.org/10.1007/s10915-012-9585-8

Definition at line 300 of file euler1d.h.


The documentation for this struct was generated from the following file: