Skip to content
A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.
Python HTML JavaScript CSS Makefile
Branch: master
Clone or download
Latest commit 0f20123 Mar 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__pycache__ Fixing JS Jan 26, 2019
css Calculating Divergence and curl Nov 29, 2018
img Adding Error Dec 10, 2018
js Fixing JS Jan 26, 2019
src Changing Exceptions Jan 26, 2019
.gitattributes Adding .gitattributes Nov 27, 2018
.gitignore Cleaning Up Jan 26, 2019
LICENSE.md Create LICENSE.md Mar 2, 2019
Makefile Adding Makefile Jan 26, 2019
Procfile Organising Nov 19, 2018
README.md Fixing README Jan 26, 2019
api.py
index.html Updating Files Dec 1, 2018
main.py Fixing main.py Jan 26, 2019
requirements.txt Fixing Visualizer Bounds Nov 27, 2018

README.md

Vector Field Visualizer

A python program to visualize a two dimensional vector field, and to calculate divergence and curl at any point.

Requirements

Install the requirements by

pip install -r requirements.txt

OR

  • matplotlib - pip install matplotlib

Usage

python3 main.py [fx] [fy] --mode [mode] --skip [skip] \
--bound [bound] --prop [prop]

--mode

Set mode to COLOR to use color to portray length instead of actual length.

--prop

Use prop to adjust the length for which the color should change.

Set mode to BLACK to use actual length.

Examples

python3 main.py x y --mode "COLOR"



python3 main.py x y --mode "BLACK"

--skip

Skip is the space between each vector for X and Y. Eg. --skip 2

--bound

Set for bounds of X and Y. Eg. --boundx "-10,10"

You can’t perform that action at this time.