Skip to content
A few methods for solving the 1D Euler equations
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
common.cpp
common.h
exact.cpp
exact.h
flic.cpp
flic.h
flux.cpp
flux.h
force.cpp
force.h
godunov.cpp
godunov.h
hllc.cpp
hllc.h
muscl.cpp
muscl.h
slic.cpp
slic.h
slope.cpp
slope.h
test.cpp
test.h
variables.cpp
variables.h
waf.cpp
waf.h

README.md

Euler1D

C++ implementations of the Godunov, WAF, MUSCL, FORCE, FLIC, and SLIC methods for solving the 1D Euler equations, as described in [1]. Each of these methods can be found in the files bearing their names. Possible inputs are given below:

  • vector X: The initial condition of the cells of the system. The state class is defined in variables.h and holds the cell's variables.
  • int BCL: The left boundary condition (0 for transitive, 1 for reflexive)
  • int BCR: The right boundary condition, similarly to the left
  • double dx: The spatial distance between neighbouring cells
  • double C: The CFL number
  • double t: The final time
  • double w: Parameter omega used in the MUSCL and SLIC solvers
  • int l: The type of limiter used (if appropriate). 0 - SUPERBEE, 1 - VANLEER, 2 - VANALBADA, 3 - MINBEE

Note that implementations of both the approximate HLLC and exact Riemann solvers are included.

[1] http://www.springer.com/gb/book/9783540252023

You can’t perform that action at this time.