Baseline Namespace Reference

Functions

def Baseline ()
 

Function Documentation

◆ Baseline()

def Baseline.Baseline ( )
11 def Baseline():
12 
13  OPT = {
14  'mode' : 3, # 1 - start with the list of pebbles, compute inertia by summation over pebbles
15  # 2 - start with the list of pebbles, compute inertia by voxelization
16  # 3 - use both stl and the list of pebbles generated by external library
17  # 4 - generate stl sequence for Blender
18  # Input
19  'clumpFileName': 'Rattleback.txt', # list of pebbles input file name (mode 1,2,4)
20  'stlFileName' : 'Rattleback.stl', # clump surface (mode 3, 4)
21  'clumpInputDir' : './Input/Clump/', # list of pebbles input dir (mode 1,2,4)
22  'stlInputDir' : './Input/Stl/', # clump surface input dir (mode 3, 4)
23  'clumpSeqDir' : './Blender/ClumpSeq/', # where to search for a clump sequence
24 
25  # Options
26  'voxNum' : 100, # Voxel grid definition (mode 2)
27  'verbose' : True, # Detailed messages
28  'useColors': True, # Use colors in the output
29  'useNumba': True, # Use just in time pre-compilation with numba
30  # (available only if numba and llvmlite are installed)
31  'rotateToPD' : True, # Aligning principal directions with global cartesian axes
32  'stlThetaRes': 32, # Theta in (0, pi) resolution - stl pebble model
33  'stlPhiRes': 32, # Phi in (0, 2pi) resolution - stl pebble model
34 
35  # Output
36  'clumpName': 'Clump04', # Used in output dirs
37  'paraviewOutput': True, # Save paraview files for clump visualization
38  'VoxelStlOutput': True, # Save voxels as stl
39  'PebbleStlOutput': True, # Save pebbles as stl
40  'animate': True, # make animation of the rotating clump, otherwise - static
41  'numTimesteps': 100, # Number of timesteps in the animation - 'animate' = True
42  'clumpOutputDir' : 'Clump', # Directory with the output list of pebbles
43  'inertiaOutputDir' : 'Inertia', # Mass, toi, principal directions
44  'paraviewOutputDir' : 'Vtu', # vtu, pebbles + principal axes
45  'voxelStlOutputDir': 'VoxelGrid', # stl (voxels)
46  'stlOutputDir': 'Stl', # stl (voxels)
47  'vtuFileName': 'Body', # vtu output file name
48  'voxStlFileName': 'Voxels.stl', # voxels stl output file name
49  'outStlFileName': 'Model.stl', # voxels stl output file name
50  'outClumpFileName': 'Clump.txt', # output clump file name
51  'inertiaFileName': 'TOI.txt', # tensor of inertia output file name
52  'pdFileName': 'PD.txt', # paraview output file name
53  'massFileName': 'Mass.txt', # paraview output file name
54  'stlSeqDir': './Blender/StlSeq',
55  # Clump generation options
56  'meshToClumpAlg': 1, # Clump reneration algorithm (1 - regular placement)
57  'regPlacementDefinition': 10 # Number of pebbles along the side of the bounding box (regular placement algorithm)
58 
59  }
60 
61  DATA = {
62  # Model data
63  'density': 1, # Default density of the clump material
64  'stlMesh': None, # stl mesh
65  'toi': None, # Tensor of inertia
66  'pd': None, # Principal directions
67  'mass': 0, # Mass of the clump
68  'pebbles': None, # List of pebbles
69  'voxelGrid': None, # Voxel grid resolving clump (see OPT['voxNum'] for voxel grid resolution)
70  'clumpSequence': None
71  }
72 
73  return OPT, DATA
def Baseline()
Definition: Baseline.py:11