Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
list_command [2016/10/26 17:16]
johnsoevans created
list_command [2017/03/31 17:05]
johnsoevans
Line 1: Line 1:
 ====== List #list Command ====== ====== List #list Command ======
  
-#list is a new feature in v6.  It's super-useful for running multiple refinements on different data sets or running multiple models against a single data set.  ​Somethings ​you can do are below.+#list is a new feature in v6.  It's super-useful for running multiple refinements on different data sets or running multiple models against a single data set.  ​Some things ​you can do are below. ​ There are lots more!
  
 Typical syntax is: Typical syntax is:
Line 16: Line 16:
 prm pa = pa_val(Run_Number);</​code>​ prm pa = pa_val(Run_Number);</​code>​
  
-By default ​the results aren't written to the INP file.  This can be changed with the lines below, where inp_filename.inp is the name of your INP file.  Note that out_file uses a "​string equation"​. ​ The "​Backup_INP"​ macro creates a backup of your input file.  This is useful as if you mess up with #list you can write a blank .inp file (essentially deleting your .inp).+By default ​refinement ​results aren't written to the INP file.  This can be changed with the lines below, where inp_filename.inp is the name of your INP file.  Note that out_file uses a "​string equation"​. ​ The "​Backup_INP"​ macro creates a backup of your input file.  This is useful as if you mess up with #list you can write a blank .inp file (essentially deleting your .inp).
  
 <code topas>​Backup_INP <code topas>​Backup_INP
Line 34: Line 34:
    } </​code>​    } </​code>​
  
-You can easily automate refinements using the #list command and string equations. ​ Just give the filenames in the #list command and use something like "​xdd ​ filename(Run_Number)"​. ​ You can add experimental information like time/​temperature/​etc in the #list command.+You can easily automate refinements using the #list command and [[string_equations|string equations]].  Just give the filenames in the #list command and use something like "​xdd ​ filename(Run_Number)"​. ​ You can add experimental information like time/​temperature/​etc in the #list command. 
 + 
 +For results files you can e.g. delete old files and write header lines with commands like the ones below. ​ If you backup only for run 0 then you won't get annoying screen "​flashes":​ 
 + 
 +<code topas>#​if (Run_Number == 0) 
 + ​Backup_INP 
 + ​system_before_save_OUT ​ { del results.txt } 
 + out "​results.txt"​ append  
 + ​Out_String(" ​    ​01_range ​  ​02_temp ​   03_time ​      ​04_r_wp ​    ​05_height ​   06_err ​    ​07_bval ​    ​08_err ​  ​09_perc_cubic ​ \n")  
 +#endif </​code>​ 
 + 
  

Personal Tools