X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=moldyn.h;h=9493f5fa9a6bea4986149dd1cc10ffae334015b1;hb=9c2172b5fce9688fa6be8d8a30745f9ef0b31419;hp=b4f71d6be65e157a247fd7581e17cc3ed94c42f5;hpb=72ce33393b80034e6407f506de88652895ffab23;p=physik%2Fposic.git diff --git a/moldyn.h b/moldyn.h index b4f71d6..9493f5f 100644 --- a/moldyn.h +++ b/moldyn.h @@ -27,11 +27,12 @@ typedef struct s_atom { t_3dvec r; /* position */ t_3dvec v; /* velocity */ t_3dvec f; /* force */ - t_3dvec virial; /* virial */ + t_3dvec virial; /* virial (v_xx, v_yy, v_zz) */ double e; /* site energy */ int element; /* number of element in pse */ double mass; /* atom mass */ - u8 bnum; /* brand number */ + u8 brand; /* brand id */ + int tag; /* atom unique id (number of atom) */ u8 attr; /* attributes */ } t_atom; @@ -377,10 +378,10 @@ int moldyn_set_log(t_moldyn *moldyn,u8 type,int timer); int moldyn_log_shutdown(t_moldyn *moldyn); int create_lattice(t_moldyn *moldyn,u8 type,double lc,int element,double mass, - u8 attr,u8 bnum,int a,int b,int c); + u8 attr,u8 brand,int a,int b,int c); int fcc_init(int a,int b,int c,double lc,t_atom *atom,t_3dvec *origin); int diamond_init(int a,int b,int c,double lc,t_atom *atom,t_3dvec *origin); -int add_atom(t_moldyn *moldyn,int element,double mass,u8 bnum,u8 attr, +int add_atom(t_moldyn *moldyn,int element,double mass,u8 brand,u8 attr, t_3dvec *r,t_3dvec *v); int destroy_atoms(t_moldyn *moldyn);