what wrong with this variable command??? -->ERROR: Illegal variable command


Who can help me check my variable definition ? I really cannot find out where I am wrong. My lammps vision is LAMMPS (31 Aug 2011)…

input script

# variable definition
variable wall_wid equal (2+${epsl})a # wall width 3 slices atoms for bcc<br>variable vz equal {vp}
variable end_retain equal 10
a # increase when vp and steps increased!<br>variable EFiniy equal {wall_wid}+{end_retain}<br>variable EFleny euqal {leny}-${end_retain}



output

variable end_retain equal 10*a # increase when vp and steps increased!<br>variable end_retain equal 10*2.8606 variable EFiniy equal {wall_wid}+{end_retain}<br>variable EFiniy equal 5.7240606+{end_retain}
variable EFiniy equal 5.7240606+28.606
variable EFleny euqal {leny}-{end_retain}
variable EFleny euqal 343.272-${end_retain}
variable EFleny euqal 343.272-28.606
ERROR: Illegal variable command

|

There is a typo: you wrote euqal instead of equal.

Axel

yeah,… These spelling mistakes are often hard to check out. Are there any good methods to avoid it???

Thank you very much!

11年9月13日,周二, Axel Kohlmeyer [email protected] 写道:


yeah,… These spelling mistakes are often hard to check out. Are there any good methods to avoid it???

using an editor with properly programmed syntax highlighting helps.

axel.