C++ mpi module for stochmagnet_main Package
SM_Constants.h
1 #ifndef SM_Constants_H
2 #define SM_Constants_H
3 
4 #include "types.h"
5 
6 //mask type
7 typedef tInt tMask;
8 
12 namespace SM_Constants {
15  static constexpr tReal UNIT_SPHERIC_AREA=M_PI*4.L;//4.Pi.r^2
16 
19  static constexpr tReal MU_0=UNIT_SPHERIC_AREA*1.e-07L;
20 
21 
24  static constexpr tReal CMU_B=9.27400915L;
25 
28  static constexpr tReal MU_B=CMU_B*1.e-24L;
29 
32  static constexpr tReal CGAMMA=1.76L;
33 
36  static constexpr tReal GAMMA=CGAMMA*1.e11L;
37 
40  static constexpr tReal CK_B=13.806503L;
41 
44  static constexpr tReal K_B=CK_B*1.e-24L;
45 
48  static constexpr tReal ANGSTROMS=1.e-10L;
49 
52  static constexpr tReal CHARACTERISTIC_FIELD=(UNIT_SPHERIC_AREA*CMU_B)*1.e-1L;
53 
56  static constexpr tReal CHARACTERISTIC_ENERGY=(UNIT_SPHERIC_AREA*CMU_B*CMU_B)*1.e-25L;
57 
60  static constexpr tReal CHARACTERISTIC_TIME=(1.L/(CGAMMA*UNIT_SPHERIC_AREA*CMU_B))*1.e-10L;
61 
64  static constexpr tReal KB_IGAMMA_IMUB=(CK_B/(CGAMMA*CMU_B))*1.e-11L;
65 
66 
67 
70  static constexpr tFlag UNIAXIAL=0;
73  static constexpr tFlag PLANAR=1;
76  static constexpr tFlag CUBIC=2;
77 
80  static constexpr tDimension DIM=3;
81 
84  static constexpr tDimension HDIM=DIM-1;
87  static constexpr tDimension X=0;
90  static constexpr tDimension Y=1;
93  static constexpr tDimension Z=2;
94 
95 }
96 #endif
this structure contsins physical constants and characteristic values
static constexpr tDimension DIM
space dimension
Definition: SM_Constants.h:80
static constexpr tReal MU_0
vacuum permeability :
Definition: SM_Constants.h:19
static constexpr tReal CGAMMA
constant of gyroscopic precession :
Definition: SM_Constants.h:32
static constexpr tReal CHARACTERISTIC_TIME
CHARACTERISTIC_TIME: (s)
Definition: SM_Constants.h:60
static constexpr tReal GAMMA
gyroscopic precession :
Definition: SM_Constants.h:36
static constexpr tReal CHARACTERISTIC_ENERGY
CHARACTERISTIC_ENERGY: (J)
Definition: SM_Constants.h:56
static constexpr tDimension X
coordinate in direction
Definition: SM_Constants.h:87
static constexpr tReal K_B
Boltzmann constants : .
Definition: SM_Constants.h:44
static constexpr tDimension Y
coordinate in direction
Definition: SM_Constants.h:90
static constexpr tReal KB_IGAMMA_IMUB
Definition: SM_Constants.h:64
static constexpr tFlag PLANAR
planar anisotropy type
Definition: SM_Constants.h:73
static constexpr tReal MU_B
Bohr magneton : (J.T^{-1})
Definition: SM_Constants.h:28
static constexpr tFlag CUBIC
cubic anisotropy type
Definition: SM_Constants.h:76
static constexpr tReal CHARACTERISTIC_FIELD
CHARACTERITIC FIELD: (T)
Definition: SM_Constants.h:52
static constexpr tDimension Z
coordinate in direction
Definition: SM_Constants.h:93
static constexpr tReal UNIT_SPHERIC_AREA
area of unit sphere : in angstrom
Definition: SM_Constants.h:15
static constexpr tDimension HDIM
hyperplan dimension
Definition: SM_Constants.h:84
static constexpr tReal ANGSTROMS
Angstroms unit : .
Definition: SM_Constants.h:48
static constexpr tReal CMU_B
constant of Bohr magneton :
Definition: SM_Constants.h:24
static constexpr tFlag UNIAXIAL
uniaxial anisotropy type
Definition: SM_Constants.h:70
static constexpr tReal CK_B
constant of Boltzmann constants :
Definition: SM_Constants.h:40