Error: variable name does not exit (move.cpp:119)

Submitted by guohan on Mon, 02/23/2015 - 17:09

Hi, All

I want to use the command 'fix move/mesh mesh linear/variable' to compress a sand pack.
What I've done is:
variable yl equal -0.5*v_dy
fix moveleft all move/mesh mesh left wall linear linear/variable 0. ${yl} 0.

I've also tried using v_yl instead of ${yl}.
However the error says: variable name 1 for fix move/mesh linear/variable does not exist.

Appreciate any help!!

richti83's picture

richti83 | Mon, 02/23/2015 - 18:46

by design move/mesh ~/variable assumes that all input variables are variable-names.
try:
variable v0 equal 0
variable yl equal -0.5*v_dy
fix moveleft all move/mesh mesh left wall linear linear/variable v_v0 v_vl v_v0

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact