added Makefiles to run all demos
This commit is contained in:
parent
671492566d
commit
80f10dbf48
11 changed files with 163 additions and 0 deletions
20
Cantera/python/examples/Makefile
Normal file
20
Cantera/python/examples/Makefile
Normal 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
|
||||
|
||||
#
|
||||
15
Cantera/python/examples/equilibrium/Makefile
Normal file
15
Cantera/python/examples/equilibrium/Makefile
Normal 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
|
||||
|
||||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
16
Cantera/python/examples/flames/Makefile
Normal file
16
Cantera/python/examples/flames/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/gasdynamics/Makefile
Normal file
15
Cantera/python/examples/gasdynamics/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/kinetics/Makefile
Normal file
15
Cantera/python/examples/kinetics/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/liquid_vapor/Makefile
Normal file
15
Cantera/python/examples/liquid_vapor/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/misc/Makefile
Normal file
15
Cantera/python/examples/misc/Makefile
Normal 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
|
||||
|
||||
16
Cantera/python/examples/reactors/Makefile
Normal file
16
Cantera/python/examples/reactors/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/surface_chemistry/Makefile
Normal file
15
Cantera/python/examples/surface_chemistry/Makefile
Normal 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
|
||||
|
||||
15
Cantera/python/examples/transport/Makefile
Normal file
15
Cantera/python/examples/transport/Makefile
Normal 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
|
||||
|
||||
Loading…
Add table
Reference in a new issue