tdebug.h - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
tdebug.h (2058B)
---
1 #ifndef DEBUG_H_
2 #define DEBUG_H_
3
4 // Enable profiling of kernel runtimes?
5 // 0: No (default)
6 // 1: Yes
7 #define PROFILING 1
8
9 // Output information about contacts to stdout?
10 // 0: No (default)
11 // 1: Yes
12 #define CONTACTINFO 0
13
14 // The number of fluid solver iterations to perform between checking the norm.
15 // residual value
16 const unsigned int nijacnorm = 10;
17
18 // Write max. residual during the latest solution loop to logfile
19 // 'max_res_norm.dat'
20 // 0: False, 1: True
21 const int write_res_log = 0;
22
23 // Report pressure (epsilon) values during Jacobi iterations to stdout
24 //#define REPORT_EPSILON
25 //#define REPORT_MORE_EPSILON
26
27 // Report the number of iterations it took before convergence to logfile
28 // 'output/<sid>-conv.dat'
29 // 0: False, 1: True
30 const int write_conv_log = 1;
31
32 // The interval between iteration number reporting in 'output/<sid>-conv.log'
33 const int conv_log_interval = 10;
34 //const int conv_log_interval = 4;
35 //const int conv_log_interval = 1;
36
37 // Enable drag force and particle fluid coupling
38 #define CFD_DEM_COUPLING
39
40 // Check if initial particle positions are finite values
41 #define CHECK_PARTICLES_FINITE
42
43 // Check for nan/inf values in fluid solver kernels
44 #define CHECK_FLUID_FINITE
45
46 // Enable reporting of velocity prediction components to stdout
47 //#define REPORT_V_P_COMPONENTS
48
49 // Enable reporting of velocity correction components to stdout
50 //#define REPORT_V_C_COMPONENTS
51
52 // Enable reporting of initial values of forcing function terms to stdout
53 //#define REPORT_FORCING_TERMS
54
55 // Enable reporting of forcing finction terms during Jacobian iterations to
56 // stdout
57 //#define REPORT_FORCING_TERMS_JACOBIAN
58
59 // Choose solver model (see Zhou et al. 2010 "Discrete particle simulation of
60 // particle-fluid flow: model formulations and their applicability", table. 1.
61 // SET_1 corresponds exactly to Model B in Zhu et al. 2007 "Discrete particle
62 // simulation of particulate systems: Theoretical developments".
63 // SET_2 corresponds approximately to Model A in Zhu et al. 2007.
64 // Choose exactly one.
65 //#define SET_1
66 #define SET_2
67
68 #endif