Postprocessing with Jupyter Notebook & Dynasaur¶
Files with the .ipynb extensions are Jupyter Notebooks. Clicking on the Viano_V1.ipynb file, should therefore open the notebook in a further tab. As already indicated, jupyter notebooks are interactive documents and allow scripting. The provided notebook contains a short description of the dynasaur python package (written in markdown) and how data from the simulation result files can be extracted by its usage. Therefore, the notebook directly loads and visualizes simulated results of interest.
Open a Jupyter notebook¶
-
Open your Anaconda Console (Anaconda Prompt)
-
Navigate to your local directory
pushd C:\"your path"\intro_exercis\Postprocessing -
If you have installed dynasaur and Jupyter Notebook in a specific environment, then activate it at first
activate viva_workshop - Start Jupyter Notebook
jupyter notebook -
Jupyter Notebook should start to run in your webbrowser:

-
Click on Jupyter Notebook to open the exemplary notebook we have shared with you

-
Run the notebook - Click on "Restart and run all cells"

-
Have a look at the notebook
Which input files are used?
Input files¶
in cell 3 you find the path definition for your simulation output files and your auxilaries - currently this is relative to your active driectory, but you can also change it to an absoulte path
e.g.
input_dir = r"C:\Users\...\Input
Connection with Dynasaur¶
Tasks¶
Task 1: Visualise the result files from another simulation¶
Try to visualise the simulation results of an alternative material model. You can find those results in your directory under \Viano_Pelvis_HS_Adjusted_Flesh_Material
Post your observations on Mentimeter
Task 2 (Advanced): Create a plot which shows the added mass as a function of time¶
Add another graph after the energy graphs, which shows the added mass as a function of time
Find the correct naming of the channel in the Dynasaur file Dynasaur
Task 3 (Advanced): Visualise the impactor velocity as a function of time¶
- Add the channel in Calculation_procedure.def (Dynasaur)
- Add the plot in the jupyter notebook
Summary¶
Switch to Mentimeter