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 "
gen_wall_box_plane.hpp
"
#include "
gravity.hpp
"
#include "
model_linear_spring.hpp
"
#include "
shape_sphere.hpp
"
#include "
simulation.hpp
"
#include "
wall_motion_control.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;
}
data_dumper.hpp
gen_pack.hpp
gen_wall_box_plane.hpp
gravity.hpp
main
int main(int argc, char *argv[])
Definition
main.cpp:18
model_linear_spring.hpp
netdem
Definition
bond_entry.hpp:7
shape_sphere.hpp
simulation.hpp
wall_motion_control.hpp
Generated by
1.12.0