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
macros [2018/08/09 07:39]
rowlesmr3 adding new page
macros [2019/06/21 17:54] (current)
pac079
Line 3: Line 3:
 The links in the table are to different macros that users have contributed (most are taken from the collection at [[http://​www.dur.ac.uk/​john.evans/​topas_academic/​macros.inc]]). ​ Please feel free to add your own macros. ​ Follow the format of one of the pages already created (or look at [[how_to_contribute#​formatting_macros]]). ​ Please add enough documentation that others can follow it! Try and keep the table roughly alphabetical. ​ More detailed instructions are available on [[how to add a macro]]. The links in the table are to different macros that users have contributed (most are taken from the collection at [[http://​www.dur.ac.uk/​john.evans/​topas_academic/​macros.inc]]). ​ Please feel free to add your own macros. ​ Follow the format of one of the pages already created (or look at [[how_to_contribute#​formatting_macros]]). ​ Please add enough documentation that others can follow it! Try and keep the table roughly alphabetical. ​ More detailed instructions are available on [[how to add a macro]].
  
-The page [[all_macros]] contains many macros in a single file+The page [[all_macros]] contains many macros in a single file
 + 
 +You can just copy/paste a macro into an INP file OR (not and!) place it in "​local.inc"​ which is in the main topas directory. ​ Note that you topas will throw an exception if a macro is defined twice. ​ You can learn the syntax by looking at the predefined macros which are in topas.inc. ​ There'​s also a great forum post on this by Matthew Rowles.
  
 \\ \\
Line 14: Line 16:
 | [[Anisotropic_broadening]] ​   |Anisotropic broadening correction based on an antiphase boundaries description by Her, Stephens et al| Emma McCabe and John S. O. Evans| | [[Anisotropic_broadening]] ​   |Anisotropic broadening correction based on an antiphase boundaries description by Her, Stephens et al| Emma McCabe and John S. O. Evans|
 | [[Anisotropic_crystallite_size]] ​     |Anisotropic broadening correction for triaxial-ellipsoids/​elliptic-cylinders/​cuboids ​        ​|Dominique Ectors ​               | | [[Anisotropic_crystallite_size]] ​     |Anisotropic broadening correction for triaxial-ellipsoids/​elliptic-cylinders/​cuboids ​        ​|Dominique Ectors ​               |
 +| [[bkg_file]] ​       | User-supplied background from a file      | Phil Chater |
 | [[Bkg_GSAS_f2]] ​       | Cosine fourier series background function (GSAS#​2) ​     | Pamela Whitfield | | [[Bkg_GSAS_f2]] ​       | Cosine fourier series background function (GSAS#​2) ​     | Pamela Whitfield |
 | [[Bkg_GSAS_f5]] ​       | GSAS background function #5 (low Q air-scatter) ​     | Pamela Whitfield | | [[Bkg_GSAS_f5]] ​       | GSAS background function #5 (low Q air-scatter) ​     | Pamela Whitfield |
Line 65: Line 68:
 | [[write_atoms_adp]] ​   | Write atoms for .inp with adps for Atoms       | John Evans       | | [[write_atoms_adp]] ​   | Write atoms for .inp with adps for Atoms       | John Evans       |
 | [[wppm_macros]] ​            | WPPM macros for TOPAS  | Paolo Scardi | | [[wppm_macros]] ​            | WPPM macros for TOPAS  | Paolo Scardi |
 +| [[xml_from_xdds]] ​     | Create xml output files from TOPAS for input into other software | Phil Chater |

Personal Tools