Hello,
I have been making DOEs by utilizing the universe variable type
variable var1 universe 1 2 3 4 5
variable var2 universe 0.1 0.2 0.3 0.4 0.5
# DO THINGS WITH var1 and var2
next var1 var2
clear
jump in.liggghts
Is there a way to use the file variable type to read in all of my DOE values from a txt file?
I have tried
variable var1 file vat1_vals.txt
variable var2 file vat2_vals.txt
but when I call
mpirun -n 4 liggghts -in in.liggghts -partition 4x1
All partitions only use the first value in each txt document.
Any ideas are welcome.
Thank you!
arnom | Thu, 11/15/2018 - 15:37
Not sure what you want to
Not sure what you want to achieve but you could use an include:
include "vat1_vals.txt"
and in there have
variable var1 universe 1 2 3 4 5
Since you might have a huge list and dont want to do it manually you can start the file with
variable var 1 universe &
and then add an & to each line (except the last one) which you should be able to do rather quickly.
mschramm | Thu, 11/15/2018 - 17:02
THANK YOU!!!
This was exactly what I was looking for.
Thanks!