A python program to visualize a two dimensional vector field, and to calculate divergence and curl at any point.
Install the requirements by
pip install -r requirements.txt
OR
- matplotlib -
pip install matplotlib
python3 main.py [fx] [fy] --mode [mode] --skip [skip] \
--bound [bound] --prop [prop]
Set mode to COLOR to use color to portray length instead of actual length.
Use prop to adjust the length for which the color should change.
Set mode to BLACK to use actual length.
python3 main.py x y --mode "COLOR"
python3 main.py x y --mode "BLACK"
Skip is the space between each vector for X and Y. Eg. --skip 2
Set for bounds of X and Y. Eg. --boundx "-10,10"