This is a brief readme for the pyhton scripts written in connection to the Burridge-Knopoff-Model master Thesis
The Sections and corresponding Subsections represent the corresponding position in the word directories file structure.
Stricter
src/python/Stricter
Analysis plot
src/python/Stricter/AnalysisPlot
- analysisSharedFunctions
- contains shared function for the other scirpts in this folder. Examples are loading and calculation of the Fourier spectrum.
- checkEnergyBlocks
- 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.
- fourierSpectrumPlotsSpike
- spike(as in EP) for the fourier spectrum. Used for creasting example plot of the fourier spectrum of a combined sine cureve.
- plotBlocks
- plots the blocks in a nice manner. Used to make example plots of how the blocks behave.
- plotPadContinous
- plot positions of pad, made for runs where the slider velocity is constant or continously increasing.
-m
flag for multifigure plot which zoom in on specific regions of the slider velocity
-s
flag for plotting pad position for step-wise increasing slider velocity as if it was continous
- plotPadStep
- 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/".
- plotSystemTesting
- 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.
Libraries
- sys
- os
- matplotlib
- numpy
- re
- yaml
- matplotlib2tikz
- time