Explicit Finite Volume Numerical Analysis Scheme
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)
- Python (in PATH)
- C++ (in PATH)
- matplotlib
- NumPy
- SciPy (for kuramoto)
pip install matplotlib numpy scipy
git clone https://github.com/nishantak/Numerical-Sim.git
cd Numerical-Sim
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)).
-
Clone this git repository
-
Set problem equation and simulation parameters in the simulate.cpp file
-
Compile and execute the simulate.cpp file
cd cpp_Transport_Burgers
g++ simulate.cpp FV_sim.cpp -o simulate && ./simulate
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)).
-
Clone this git repository
-
Set problem equation and simulation parameters in the config.py and kuramoto_main.py file
-
Run the kuramoto_main.py script
cd python_Kuramoto
python kuramoto_main.py