HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
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

◆ gamma

double gamma

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

Definition at line 274 of file euler1d.h.

◆ grav

double grav

acceleration due to gravity

Definition at line 275 of file euler1d.h.

◆ grav_type

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.

◆ grav_field

double* grav_field

Array to store the gravity potential field

Definition at line 288 of file euler1d.h.

◆ fast_jac

double* fast_jac

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

Definition at line 289 of file euler1d.h.

◆ solution

double* solution

Array to store the reference solution for linearization

Definition at line 290 of file euler1d.h.

◆ upw_choice

char upw_choice[_MAX_STRING_SIZE_]

Choice of upwinding scheme.

See also
_ROE_,_LLF_,_RF_,_SWFS_

Definition at line 291 of file euler1d.h.

◆ SourceUpwind

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: