added Makefiles to run all demos

This commit is contained in:
Dave Goodwin 2006-11-08 23:14:10 +00:00
parent 671492566d
commit 80f10dbf48
11 changed files with 163 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/bin/sh
PY_DEMO_DIRS = equilibrium flames gasdynamics kinetics liquid_vapor \
misc reactors surface_chemistry transport
run:
@(for d in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${d}..."; \
(cd $${d}; make run) ; \
done)
cleanup:
@(for dd in $(PY_DEMO_DIRS) ; do \
echo "entering directory $${dd}..."; \
(cd $${dd}; make -i clean; cd ..) ; \
done)
# end of file
#

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = simple.py stoich.py adiabatic.py multiphase_plasma.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -1,3 +1,9 @@
########################################################################
#### NOTE: with the changes made to the ChemEquil solver in version 1.7,
#### it now converges, and the Multiphase solver is no longer invoked
#### in this demo
########################################################################
# Equilibrium of a (nearly) stoichiometric hydrogen/oxygen mixture at
# fixed temperature.

View file

@ -0,0 +1,16 @@
#!/bin/sh
PY_DEMOS = flame1.py flame2.py stflame1.py npflame1.py free_h2_air.py \
adiabatic_flame.py fixed_T_flame.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = isentropic.py soundSpeeds.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = ratecoeffs.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = critProperties.py rankine.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = rxnpath1.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,16 @@
#!/bin/sh
PY_DEMOS = combustor.py function1.py mix1.py mix2.py piston.py reactor1.py \
reactor2.py sensitivity1.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = catcomb.py diamond.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file

View file

@ -0,0 +1,15 @@
#!/bin/sh
PY_DEMOS = dustygas.py
run:
@(for py in $(PY_DEMOS) ; do \
echo "running $${py}..."; \
$(PYTHON_CMD) "$${py}"; \
done)
clean:
rm -f *.log *.csv *.xml
# end of file