iField enables users to design custom electrode geometries interactively using their mouse or trackpad. They can assign applied voltages to the electrodes and introduce charged particles within the domain by clicking on the interactive grid. Users can also specify the charge of the introduced particles, and iField animates their trajectories based on the calculated solutions. This dynamic and intuitive interface provides a simple and seamless way to visualize and simulate particle motion in custom electric fields.
- Click and drag in DRAW mode (black grid) to place Dirichlet boundary conditions
- Click in PLACE mode (solved potential visible) to place particles
- Press 'i' to input a charge or e-field value
- Press 'e' to solve field and switch between DRAW and PLACE modes
- Press 'r' to reset field in DRAW mode
- Press 'p' to pause particle sim in PLACE mode
See pyproject.toml
for dependencies.
To install in a Python environment (Conda, Pyenv, etc.) run pip install -e .
from the top-level directory above src. This will install dependencies and place
the executable "ifield" on the PATH when the environment is active.
To run without installation, the script src/run_game.py
is available and can
be run standalone provided dependencies are installed.