Dear all,
I am a little confused about the usage of the variable type of f_a and ${a}. To give an example, when I use "fix a all mesh/serface/stress/servo ...", I want to obtain the displacement of the servo wall, thus I use "variable loct euqal f_a[9]-0.1" where 0.1 is the original of the servo stl wall. When I want to applied this variable in another command (e.g. fix b all mesh/surface/stress ... move 0. 0. ${loct}), the ERROR message shows: invalid fix ID in variable formula.
However, if I use "variable loct euqal f_a[9]-0.1" and "variable reloct equal ${loct}", then I applied this variable to "fix b all mesh/surface/stress ... move 0. 0. ${reloct}", there is no more problem. I am really confused with this.
Briefly, could someone tell me the difference between
fix a all mesh/serface/stress/servo ...
variable loct euqal f_a[9]-0.1
fix b all mesh/surface/stress ... move 0. 0. ${loct} ...
and
fix a all mesh/serface/stress/servo ...
variable loct euqal f_a[9]-0.1
variable reloct equal ${loct}
fix b all mesh/surface/stress ... move 0. 0. ${reloct} ...
Many thanks!
Zheng