Page MenuHomec4science

main.cpp
No OneTemporary

File Metadata

Created
Fri, Aug 30, 17:31

main.cpp

#include <iostream>
#include <sstream>
#include "simulation.h"
#define G 127267.200000000 // Gravity, 9.82*(3.6)^2*1000 in [km / hr^2]
#define SIZE 500 // Size of map, Size*Size [km]
#define NX 2001 // Number of cells in each direction on the grid
#define TEND 0.20 // Simulation time in hours [hr]
#define DIR "../../Source/"
int main () {
double DX = SIZE*1.0/NX;
std::cout << G << " " << SIZE << " " << NX << " " << TEND << " dx: "<< DX << std::endl;
Simulation simu(NX,G,SIZE,TEND,DX, DIR);
float totalTime;
int k;
std::tie(totalTime, k) = simu.compute();
std::cout << "Total time : " << totalTime << " Number of steps : " << k << std::endl;
return 0;
}

Event Timeline