A compact Python project that analyses the simulation (COMSOL Multiphysics) and tested data that:
- Visualises all data in plots
- Uses Gaussian Blur to create the heatmap
- Audio analyses
- All figures are available to be locally saved at a report level quality
All the site-packages required are listed in:
imports.pyCheck pypi.org regarding the names of the required site packages:
for Python 2.x or below:
pip install <name>for Python 3.x:
pip3 install <name>Clone or download the repository
Run the script main.py:
for Python 2.x or below:
python main.pyfor Python 3.x:
python3 main.pyA GUI will pop out with a plotted trend plot.
For all the controlled variable simulation data, polynomial fits are applied, this can be turned off by the box on the top, the band gap plot at each point are available in the drop-down menu titled Spectrum, by choosing different parameters in the drop-down menu called Dataset, different absorption patterns can be seen.
The heatmap is designed specifically for the separation d and the slit w. Hovering the cursor on the plot will show the live data of the absorption, with the parameters. The choices of the best combination and a worse combination for comparison can be illustrated by ticking the box Show Choices
Similar to others, different choices of the plots can be shown
All figures displayed in the GUI can be saved locally by clicking the Save Figure button at the bottom of the window, you can change:
- DPI
- limits of x/y axes
- Height and Width
- Grid
- Legend
- Show or hide the titles
- Texts of the title
- Labels of the axes
- This Python project was built and tested under the Python versions
3.11and3.12only - This project was only tested with macOS 26 (Tahoe), glitches on other operating systems might happen
- The save figure function for heatmap does not work with the current version
- Make sure all site packages are successfully installed in the desired Python environment
- The cache clearing functions are only tested on macOS, if related errors occur, comment out the lines in
main.py:
SystemCtrl.clear_pycache()
sys.exit(0)to:
# SystemCtrl.clear_pycache()
# sys.exit(0)- For any other questions or comments, please contact the owner (first in contributor) or raise in this repository.