CellModules
config.hpp
Go to the documentation of this file.
1#ifndef CONFIG_HPP
2#define CONFIG_HPP
3#include <random>
4
5namespace MecaCell {
6struct Config {
7 // TYPES
8 using random_engine_t = std::mt19937; // used for random vectors
9
10 // CONST
11 static constexpr double DEFAULT_CELL_DAMP_RATIO = 1.0;
12 static constexpr double DEFAULT_CELL_RADIUS = 40;
13 static constexpr double DEFAULT_CELL_MASS = 0.04;
14 static constexpr double DEFAULT_CELL_STIFFNESS = 4.0;
15 static constexpr double DEFAULT_CELL_YOUNGMOD = 1.0;
16 static constexpr double DEFAULT_CELL_POISSONCOEF = 0.3;
17
22 static constexpr double DOUBLE_EPSILON = 1e-20;
23
31 //std::random_device rd;
32 static random_engine_t engine;
33 return engine;
34 }
35};
36} // namespace MecaCell
37#endif
this file contains various miscellanious utility functions & helpers *
static constexpr double DEFAULT_CELL_POISSONCOEF
Definition: config.hpp:16
static constexpr double DOUBLE_EPSILON
max distance for two doubles to be considered equals (only used for some geometric operations)
Definition: config.hpp:22
static constexpr double DEFAULT_CELL_MASS
Definition: config.hpp:13
static constexpr double DEFAULT_CELL_DAMP_RATIO
Definition: config.hpp:11
std::mt19937 random_engine_t
Definition: config.hpp:8
static random_engine_t & globalRand()
access to the static global random engine.This pseudo - random generator is* used in random 3D vector...
Definition: config.hpp:30
static constexpr double DEFAULT_CELL_RADIUS
Definition: config.hpp:12
static constexpr double DEFAULT_CELL_YOUNGMOD
Definition: config.hpp:15
static constexpr double DEFAULT_CELL_STIFFNESS
Definition: config.hpp:14