Usage¶
Installation¶
Clone from github.
Ensure that you have the following dependencies installed and up to date: python3, paraview, matplotlib and/or gnuplot.
General outline (hierarchy) of code¶
MTE.py, where you can configure the model setup for various benchmarks and modify meshing, among other tasks. It relies on three modules that consist of various functions:magnetostatics: This module mainly involves the translation of the original Fortran77 code from [Blakely, 1995].tools: This module contains functions to generate vtu files for visualization.support: This module houses several functions related to specific model setups.
run.sh performs a straightforward task: it executes the MTE.py code, generating output both in the terminal and writing it in a file named log.txt.Reproducing results¶
1 |
Note
Highlighted lines are changes from the last setup outlined in previous steps or sections, if any preceding steps or section were not performed, make sure to check all lines for changes to the base code 1.
|
|
Note
Any modifications to the code and accompanying data not mentioned within these steps might produce unverified results. Should you make such alterations, please meticulously reviews all comments in the code and consult the Functions documentation.
Footnotes
- 1
The base code is the version of
MTE.pyon github.- 2
If you are using Spyder, make sure to add the Spyder-terminal plugin.
- 3
Time estimate done with OS: ubuntu 22.04.3, with processor: Intel® Core™ i5-8250U CPU @ 1.60GHz × 8, and with RAM: 8,0 GiB.