Introduction
Introduction Statistics Contact Development Disclaimer Help
tpackingtest.c - granular - granular dynamics simulation
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
tpackingtest.c (482B)
---
1 #include <stdio.h>
2 #include "packing.h"
3 #include "simulation.h"
4 #include "arrays.h"
5 #include "util.h"
6
7 int
8 main(void)
9 {
10 struct simulation sim;
11
12 size_t n[3], np = 0;
13 n[0] = 10; n[1] = 7; n[2] = 1;
14 double *origo = zeros(3);
15
16 /* np = rectangular_packing(&sim.grains, n, 1.0, 1.0, random_val…
17 np = triangular_packing(&sim.grains, n, 1.0, 1.0, random_value_u…
18 print_grains(stdout, sim.grains, np);
19
20 free(origo);
21 free_sim(&sim);
22 }
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.