This is an example of how to use the netdem library.
#include <iostream>
#include <string>
using namespace std;
void HertzContact();
void RandomPacking();
void GolfBallImpact();
int main(
int argc,
char **argv) {
if (argc == 1) {
cout << "please specify the id of the task. \n"
<< "e.g.: netdem_example_deformable_particle i" << endl;
cout << ">> 0: HertzContact" << endl;
cout << ">> 80: RandomPacking" << endl;
cout << ">> 81: GolfBallImpact" << endl;
return -1;
}
int id = atof(argv[1]);
switch (id) {
case 0:
HertzContact();
break;
case 80:
RandomPacking();
break;
case 81:
GolfBallImpact();
break;
default:
break;
}
return 0;
}
int main(int argc, char *argv[])
Definition main.cpp:18