nishantak / Numerical-Sim

Finite Volume Numerical Analysis Scheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numerical Simulation

Explicit Finite Volume Numerical Analysis Scheme

trspt_disc burg_sin id_pol ni_pol

Steps to run

Ensure you have the dependencies installed and follow the steps for the problem which you want to simulate.

(All shell commands are for a windows environment)

Dependencies: -

  1. Python (in PATH)
  2. C++ (in PATH)
  3. matplotlib
  4. NumPy
  5. SciPy (for kuramoto)
pip install matplotlib numpy scipy
git clone https://github.com/nishantak/Numerical-Sim.git
cd Numerical-Sim

Transport_Burgers C++ Code

FV_sim.h and FV_sim.cpp constitute A CUSTOM NUMERICAL ANALYSIS LIBRARY that contains all the functions and scheme implementations. simulate.cpp contains all simulation parameters and the flux definition (f(u)).

  1. Clone this git repository

  2. Set problem equation and simulation parameters in the simulate.cpp file

  3. Compile and execute the simulate.cpp file

cd cpp_Transport_Burgers
g++ simulate.cpp FV_sim.cpp -o simulate && ./simulate

Kuramoto Python Code

In their respective directory, scheme.py is the module that contains the respective numerical analysis scheme implementation. functions.py is the module that contains functionality functions. config.py contains all simulation parameters and the flux definition (f(u)).

  1. Clone this git repository

  2. Set problem equation and simulation parameters in the config.py and kuramoto_main.py file

  3. Run the kuramoto_main.py script

cd python_Kuramoto
python kuramoto_main.py

About

Finite Volume Numerical Analysis Scheme


Languages

Language:Python 51.9%Language:C++ 48.1%