Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/actions.php on line 38
out_xtl [topas wiki]

User Tools

Site Tools


out_xtl

Output .xtl Format

Write out atoms in the old insight .xtl format, which is still used by some packages.

macro Out_xtl(file) {
   out file
   Out_String("TITLE ")
   Out(Get(phase_name))
   Out_String("\nCELL\n")
   Out(Get(a), "%9.4f")
   Out(Get(b), "%9.4f")
   Out(Get(c), "%9.4f")
   Out(Get(al), "%9.4f")
   Out(Get(be), "%9.4f")
   Out(Get(ga), "%9.4f")
   Out_String("\nATOMS")
   Out_String("\nNAME X Y Z")
   atom_out file append
   load out_record out_fmt out_eqn
   {
      "\n%-4s" = Get_From_String(Get(current_atom), atom);
      "%11.8f " = Get_From_String(Get(current_atom), x);
      " %11.8f " = Get_From_String(Get(current_atom), y);
      " %11.8f " = Get_From_String(Get(current_atom), z);
   }
   out file append
   Out_String("\nEOF")
}
out_xtl.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1