NetDEM v1.0
Loading...
Searching...
No Matches
triaxial_comp_main.cpp

This is an example of how to use the netdem library.

#include "data_dumper.hpp"
#include "gen_pack.hpp"
#include "gravity.hpp"
#include "shape_sphere.hpp"
#include "simulation.hpp"
#include <iostream>
#include <unordered_map>
using namespace netdem;
using namespace std;
int PlaneCase(int argc, char **argv);
int MembraneCase(int argc, char **argv);
int main(int argc, char **argv) {
if (argc == 1) {
cout << "please specify the id of the task. \n"
<< "e.g.: netdem_example_triaxial_comp i" << endl;
cout << ">> 0: plane case" << endl;
cout << ">> 1: membrane case" << endl;
return -1;
}
int id = atof(argv[1]);
switch (id) {
case 0:
PlaneCase(argc, argv);
break;
case 1:
MembraneCase(argc, argv);
break;
default:
break;
}
return 0;
}
int main(int argc, char *argv[])
Definition main.cpp:18
Definition bond_entry.hpp:7