silveira
Hi everyone,
I am using Topas v6 and trying to run a sequential refinement in which the phases are turned on and off based on the temperature data by if statements. Since my data shows many phase transformations over time, it seems a reasonable idea.
I tried to implement tutorial 33.7 and also what is published in the Topas book (12.2.2). My template works fine when I use the batch process with .bat files, but after I implemented the #list and the #if statements, I keep getting this error:
#prm [ str ] not defined
Apparently, Topas cannot identify the str in my template... This is probably a beginner mistake, but I could not find any help in the already answered questions about this subject.
In the attachment, you can find my template.
I would appreciate any references or suggestions.
Antonio
johnsoevans
Antonio,
One way to do this with #prm's as in the snippets below. These are done on range numbers for a Bruker raw file but you could do the same with temperature.
#if (range <= 33)
#prm mono = 1;
#prm orth = 0;
#elseif ( And(range >= 34, range <= 41) )
#prm mono = 1;
#prm orth = 1;
#else
#prm mono = 0;
#prm orth = 1;
#endif
Around your strs use:
#if (mono)
str
[stuff on monoclinic phase]
#endif
Hope that helps.
John