Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
One-dimensional advection

Solve the linear advection equation:

.. math:: 
    q_t + u q_x & = 0.

Here q is the density of some conserved quantity and u is the velocity.

src/p/y/pyclaw-HEAD/examples/advection_1d/test_advection.py   pyclaw(Download)
    tests against expected classic, sharpclaw, and high-order weno results """
    import advection_1d
    def verify_expected(expected):