My Project
src/python/readme.md
Go to the documentation of this file.
1 # Python scripts
2 
3 This is a brief readme for the pyhton scripts written in connection to the Burridge-Knopoff-Model master Thesis
4 
5 
6 The Sections and corresponding Subsections represent the corresponding position in the word directories file structure.
7 
8 ## Stricter
9 src/python/Stricter
10 
11 ### Analysis plot
12 src/python/Stricter/AnalysisPlot
13 * analysisSharedFunctions
14  - contains shared function for the other scirpts in this folder. Examples are loading and calculation of the Fourier spectrum.
15 - checkEnergyBlocks
16  - calculate and show the energy in the blocks from a run. Used to show that the energy is conserved when no friction or damping is activated. Also showcase the numeric error.
17 - fourierSpectrumPlotsSpike
18  - spike(as in EP) for the fourier spectrum. Used for creasting example plot of the fourier spectrum of a combined sine cureve.
19 - plotBlocks
20  - plots the blocks in a nice manner. Used to make example plots of how the blocks behave.
21 * plotPadContinous
22  - plot positions of pad, made for runs where the slider velocity is constant or continously increasing.
23  - ```-m``` flag for multifigure plot which zoom in on specific regions of the slider velocity
24  - ```-s``` flag for plotting pad position for step-wise increasing slider velocity as if it was continous
25 - plotPadStep
26  - similar to "plotPadContinous.py", but made for step wise increases of the slider velocity. It takes advantage of the data produced by "makePhaseAnimationData.py" in "src/python/FrictionFromSimulation/".
27 - plotSystemTesting
28  - similar to "plotPadContinous.py", "plotPadStep.py" and "plotBlocks". This script is only used to test and focus different aspect of the output from the simulation.
29 
30 ## Libraries
31 
32 * sys
33 * os
34 * matplotlib
35  * pyplot
36 * numpy
37 * re
38 * yaml
39 * *matplotlib2tikz*
40 * time