Dear all.
I've recently familiarized myself with various aspects of the input file of topas, which works wonders. However, I am wondering about the '
local' keyword.
I can tell on the wiki that the following use works (And I've tested it):
xdd..
str...
local prm_Silver_beq 0
site Ag1 num_posns 4 x 0 y 0 z 0 occ Ag 1 beq =prm_Silver_beq;
However, I do not understand what
exactly the number on the end of line 3 means.
I have a procedure, where I initialize one of several hundred datafiles in the GUI, and then I copypaste the contents of the INP file to include all my datafiles like the following in order to do a surface refinement:
xdd datafile1
str..
local prm_Silver_beq 0
site Ag1 num_posns 4 x 0 y 0 z 0 occ Ag 1 beq =prm_Silver_beq;
out ... append
Out(prm_Silver_beq, " %11.5f \n")
xdd datafile2
str..
local prm_Silver_beq 0
site Ag1 num_posns 4 x 0 y 0 z 0 occ Ag 1 beq =prm_Silver_beq;
out ... append
Out(prm_Silver_beq, " %11.5f \n")
xdd datafile3
str..
local prm_Silver_beq 0
site Ag1 num_posns 4 x 0 y 0 z 0 occ Ag 1 beq =prm_Silver_beq;
out ... append
Out(prm_Silver_beq, " %11.5f \n")
My concern is that when I exchange the following original INP line
site Ag1 num_posns 4 x 0 y 0 z 0 occ Ag 1 beq @ -0.02126058884
With the one where I placed the local parameter, the initial number gets lost, and I am afraid that the further refinements might not be as good as the one which would be based off of this number already on the line.
Thus my questions becomes:
1. Is it possible to define a local parameter by replacing the @ with a special combination of keywords? This way I only have to change one line, and hopefully the number can remain as an initial value.
2. If I have to define the local parameter on a separate line, like in the examples above, can I replace the 0 with the number behind the original "beq @" and have the refinement start with that initial value?
Sorry for the long post. I hope I was able to present my problem in a proper manner.