In order to implement High-performance GPU computations and interactive 3D visualization, I used libraries below.
| Language | Library | Purpose | Official Document url |
|---|---|---|---|
| Python | CuPy | GPU based Parallel computing | CuPy |
| Â | NumPy | Post-processing of GPU computation results | Numpy |
| Â | Flask | Constructing Local web server for Magnetic field data interactions | Flask |
| JavaScript | Three.js | Real-time Magnetic field visualization via web browser | Three.js |
“Reveal the invisible world of Magnetic field!”
This project calculates and visualizes magnitude and direction of magnetic field in each point generated by user-given electric current, using Finite Element Method.
For research and education purpose, you can use this whatever you like. (Code modification is allowed, secondary distribution is not allowed.)
COMSOL is too expensive! I made this for moneyless students
You can run this in Google Colab WITHOUT any graphics card!
Youtube video instructions are ready! Click image to watch. (English subtitle is ready)
| 🎥 Overall Instruction | 💻 How to use this on Google Colab |
|---|---|
![]() |
![]() |
| Introducing overall features | Run this on web browser without GPU |
.csv file containing 6 columns!).csv format in order to see it on Microsoft Excel or else.This project implements High-performance computations via NVIDIA GPU(CUDA)
run.bat file by double click. It will install necessary libraries automatically in virtual environment.run.bat filerun.bat file, it will automatically generate virtual environment and download necessary libraries. If download is completed, run.bat will automatically initiate local server..csv format. Use this for further accurate analysis.This project is a one-person project developed to provide students an academic tool to study magnetic fields for free.
Any feedback and assistance on these issues below is welcome!
.exe format packaging: PyInstaller crashes if I try to export this project into single .exe package.window.close() does not work. (I think this is because of Chrome’s security policy)This project can be used freely for Education and Research purpose. You can use this without any permission for your class or personal studies!🎓
Code modification is always allowed. Secondary distribution is not allowed. If you want to share, send url of this page.
If you have any feedbacks or questions, ask me via github or email(lcp020620@kaist.ac.kr).