Skip to content

Instantly share code, notes, and snippets.

View ketch's full-sized avatar

David Ketcheson ketch

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ketch
ketch / ARW_nodepy.ipynb
Last active August 29, 2015 14:07
Reproduction of IMEX RK stability regions from Ascher-Ruuth-Wetton paper.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ketch
ketch / Shocktube-Mach.ipynb
Last active August 29, 2015 14:07
Shocktube problem with specified Mach number for the compressible Euler equations. Finds states yielding a shock with prescribed Mach number and plots the solution of the Riemann problem. #riemann-problem #euler-equations #hyperbolic
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ketch
ketch / plot_yt_amrclaw.py
Last active August 29, 2015 14:09
A demo of how to plot AMRClaw output using yt (yt-project).
import yt
from clawpack.pyclaw import Solution
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
for frame in range(8):
sol = Solution(frame,path='_hdf_output',file_format='hdf')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ketch
ketch / asv.conf.json
Last active August 29, 2015 14:09
Airspeed velocity configuration for clawpack.
{
// The version of the config file format. Do not change, unless
// you know what you are doing.
"version": 1,
// The name of the project being benchmarked
"project": "clawpack",
// The project's homepage
"project_url": "http://www.clawpack.org/",