Arithmetic and/or user defined variables in the input file
Posted: Wed Oct 15, 2014 9:15 pm
Hi All,
I was just wondering if there is any way to declare a user variable and or do arithmetic with it from within the input file. Specifically, I am working on 2-d van der waals materials, and I often find myself setting up simulations to do several SCF runs with different layer-to-layer spacings in order to find the binding characteristics. Currently I use a script to generate new xcart values for each spacing, but it would make the input file much more legible when I come back to it a few weeks later to try and figure out what I was doing if i could write something like this:
ndtset 10 spacing: 2.6 spacing+ 0.1
xcart 2/3 1/3 0
0 0 spacing
where "spacing" would be a user defined variable that would actually end up generating 10 different xcarts.
Is there any easy way to do this that I am missing?
Thanks,
Chad
I was just wondering if there is any way to declare a user variable and or do arithmetic with it from within the input file. Specifically, I am working on 2-d van der waals materials, and I often find myself setting up simulations to do several SCF runs with different layer-to-layer spacings in order to find the binding characteristics. Currently I use a script to generate new xcart values for each spacing, but it would make the input file much more legible when I come back to it a few weeks later to try and figure out what I was doing if i could write something like this:
ndtset 10 spacing: 2.6 spacing+ 0.1
xcart 2/3 1/3 0
0 0 spacing
where "spacing" would be a user defined variable that would actually end up generating 10 different xcarts.
Is there any easy way to do this that I am missing?
Thanks,
Chad