X-Git-Url: https://www.hackdaworld.org/gitweb/?p=physik%2Fposic.git;a=blobdiff_plain;f=posic.h;h=6374e0fe9a8510c6b13f035c18eb6d88b2535c47;hp=93b7219bd6262d70acadf658b5ec6d8a2b3c7318;hb=HEAD;hpb=9ae5e8af9192b47fba3743ab7f4ef6d0c34d507d diff --git a/posic.h b/posic.h index 93b7219..6374e0f 100644 --- a/posic.h +++ b/posic.h @@ -1,11 +1,18 @@ /* * posic.h - precipitation process of silicon carbide in silicon * - * author: Frank Zirkelbach + * author: Frank Zirkelbach * */ +#ifndef POSIC_H +#define POSIC_H + +/* includes */ + #define _GNU_SOURCE + +// system #include #include #include @@ -14,41 +21,26 @@ #include #include -#ifndef POSIC_H -#define POSIC_H +#include + +// swapped out functions +#include "math/math.h" +#include "list/list.h" +#include "random/random.h" + +// moldyn core functions +#include "moldyn.h" + +// potentials +#include "potentials/harmonic_oscillator.h" +#include "potentials/lennard_jones.h" +#include "potentials/albe.h" +#ifdef TERSOFF_ORIG +#include "potentials/tersoff_orig.h" // obsolete & wrong! ;) +#else +#include "potentials/tersoff.h" +#endif -#define LEN_X 5 -#define LX (1.0*LEN_X/2) -#define LEN_Y 5 -#define LY (1.0*LEN_Y/2) -#define LEN_Z 5 -#define LZ (1.0*LEN_Z/2) - -#define RUNS 1000 -#define TAU 0.001 - -#define R_CUTOFF 2 -#define R2_CUTOFF (R_CUTOFF*R_CUTOFF) - -#define SI_M 1 -#define SI_LC 0.543105 -#define LJ_SIGMA SI_LC -#define LJ_SIGMA_02 (LJ_SIGMA*LJ_SIGMA) -#define LJ_SIGMA_06 (LJ_SIGMA_02*LJ_SIGMA_02*LJ_SIGMA_02) -#define LJ_SIGMA_12 (LJ_SIGMA_06*LJ_SIGMA_06) - -#define AMOUNT_SI ((LEN_X/SI_LC)*(LEN_Y/SI_LC)*(LEN_Z/SI_LC)*2) - -typedef struct s_atom { - double x; - double y; - double z; - double vx; - double vy; - double vz; - double fx; - double fy; - double fz; -} t_atom; +/* defines */ #endif