vivek3141 / vector-field-visualizer

A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.

Home Page:https://vivek3141.github.io/vector-field-visualizer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.

https://vivek3141.github.io/vector-field-visualizer/

License:MIT License


Languages

Language:Python 55.6%Language:HTML 19.0%Language:JavaScript 14.6%Language:CSS 10.7%Language:Makefile 0.1%