Riemann¶
The Riemann module is a simple code generator for hyperbolic problems in the style of CLAWPACK. Given either the flux (f) or the jacobian (A) of a hyperbolic equation as below:
Currently only 1D simple kernels are implemented.
Using Riemann Generator¶
First you define your equation, for example an acoustic equation:
from ignition.riemann import *
q = Conserved('q')
p, u = q.fields(['p','u'])
rho = Constant('rho')
K = Constant('bulk')
f = [ K*u ,
p/rho]
We pass this code to the generator:
generate(flux=f, conserved=q, filename="acoustics_kernel.py")
For the full example see demo/riemann.