Shock & Detonation Toolbox - DEMOS - Windows/Python
RUNNING PYTHON DEMOS IN WINDOWS
- Right click on python file (.py)
- Left click on "Edit with Idle", two windows a Shell for output and the editing window behind it will appear
- In the filename.py Window enter "F5" (shortcut for selecting at the top: Run > RunModule), look for the output in the other window
- See the installation instructions slide #9 for (additional guidance)
For more details about a particular function use
help(function)
For example, in a python shell type:
from SDToolbox import *
help(CJspeed2)
The following pages contain demonstrations of the capabilities of the toolbox. Examples 1-4 demonstrate the usage of single functions while example 5 demonstrates a more advanced task. ZND detonation structure calculations are currently only available in
Window with Matlab Demo #5 or for Linux.
- CJ Calculations
- Chapman-Jouguet Velocity - minimum velocity method (demo_CJ)
- Chapman-Jouguet Equilibrium State (demo_CJstate)
- Chapman-Jouguet Velocity & Equilibrium State - sonic plane method (demo_CJstate2)
- Post-Shock State Calculations for a User Specified Shock Speed
- Post-Reflected-Shock Calculations for a User Specified Shock Speed
- Constant Volume Explosion Calculations
- Initial Conditions: Shock Heated Mixture
- Rayleigh Line and Reactant & Prodcut Hugoniots for a Given Shock Speed
(demo_RH)
All of the demo files can be downloaded in a single ZIP file.