This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Set up the plot figures, axes, and items to be done for each frame. | |
This module is imported by the plotting routines and then the | |
function setplot is called to set the plot parameters. | |
""" | |
#-------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def DC_general(nnodes,niterations,theta=0,grid='eq'): | |
""" Spectral deferred correction methods. | |
For now, based on explicit Euler and equispaced points. | |
This version allows the number of nodes and iterations to be different. | |
**Input**: s -- number of grid points & number of correction iterations | |
**Output**: A ExplicitRungeKuttaMethod | |
Note that the number of stages is NOT equal to s. The order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import numpy as np | |
def acoustics3D(iplot=False,htmlplot=False,use_petsc=False,outdir='./_output',solver_type='classic',disable_output=False,**kwargs): | |
""" | |
Example python script for solving the 3d acoustics equations. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Solve the Euler equations of compressible fluid dynamics. | |
""" | |
from clawpack import pyclaw | |
from clawpack import riemann | |
solver = pyclaw.ClawSolver2D(riemann.rp2_euler_4wave) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "\nPrep/Setup" | |
echo "~~~~~~~~~~" | |
echo "pyclaw_prep - set up build environment" | |
pyclaw_prep() { | |
projdir=/your/chosen/directory | |
sandbox=${projdir}/sandbox | |
echo "sandbox=${sandbox}" | |
builddir=${projdir}/opt/share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @ job_name = test_pyclaw | |
# @ job_type = bluegene | |
# @ output = ./$(job_name)_$(jobid).out | |
# @ error = ./$(job_name)_$(jobid).err | |
# @ environment = COPY_ALL; | |
# @ wall_clock_limit = 0:15:00,0:15:00 | |
# @ notification = always | |
# @ bg_size = 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer