Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
get_distance [2016/10/15 15:18]
johnsoevans
get_distance [2018/11/23 13:36]
johnsoevans
Line 17: Line 17:
 <code topas>​macro Get_Angle(sites,​ c, ang_calc) <code topas>​macro Get_Angle(sites,​ c, ang_calc)
 { {
-   #​m_ifarg c ""​ +   macro Get_Angle(sites,​ c, ang_calc) 
-      #​m_unique_not_refine c +      { 
-   ​#m_endif +         #m_ifarg c ""​ 
- sites_geometry ​s3 +            #​m_unique_not_refine c 
- load site_to_restrain { sites } +         ​#m_endif 
- prm   c = Sites_Geometry_Angle(s3); : ang_calc+         ​sites_geometry ​ 
 +            load site_to_restrain { sites } 
 +         ​prm = Sites_Geometry_Angle(c); : ang_calc 
 +      }
 }</​code>​ }</​code>​
   ​   ​
Line 38: Line 41:
 More fundamental language for distances and angles is: More fundamental language for distances and angles is:
  
-<code topas> ​     sites_geometry s2 +<code topas>​sites_geometry s2 
-       ​load site_to_restrain { O5 0 0 0 0 O5 5 -1 1 0 } + load site_to_restrain { O5 0 0 0 0 O5 5 -1 1 0 } 
-      prm diag_short = Sites_Geometry_Distance(s2);​ :  5.07701`_0.00402+prm diag_short = Sites_Geometry_Distance(s2);​ :  5.07701`_0.00402
                        
-      ​sites_geometry s3 +sites_geometry s3 
-       ​load site_to_restrain { Si2 0 0 0 0  O3 0 0 0 0 Si1 0 0 0 0 } + load site_to_restrain { Si2 0 0 0 0  O3 0 0 0 0 Si1 0 0 0 0 } 
-      prm Si1_O3_Si2 = Sites_Geometry_Angle(s3);​ :  137.38670`_0.14381  ​+prm Si1_O3_Si2 = Sites_Geometry_Angle(s3);​ :  137.38670`_0.14381  ​
 </​code>​ </​code>​
  

Personal Tools