Problem with move linear/variable

Submitted by chewnins on Wed, 09/16/2015 - 02:27

I am having a problem with the move/mesh linear/variable style.

Here is the section of my input script:

variable rotator equal .20324
variable liny equal .26
variable linz equal .03

fix lin1 all move/mesh mesh lip linear/variable 0 v_liny v_linz
fix lin2 all move/mesh mesh bucket linear/variable 0 liny linz
fix rot1 all move/mesh mesh lip rotate/variable origin 0 .21656 .36962 axis 1 0 0 omega v_rotator
fix rot2 all move/mesh mesh bucket rotate/variable origin 0 .21656 .36962 axis 1 0 0 omega v_rotator

This results in this error:

fix lin1 all move/mesh mesh lip linear/variable 0 v_liny v_linz
ERROR: Variable name 1 for fix move/mesh linear/variable does not exist (../mesh_mover.cpp:119)

If I move the rotate/variable before the linear they load properly, so I think the variable setup and substitution is correct. Is there something I am missing?

JoshuaP | Wed, 09/16/2015 - 10:07

maybe it is just a mistake from typing it here in the forum, but in fix lin2 you forget to write v_ in front of the variables.

chewnins | Wed, 09/16/2015 - 18:11

Thanks for the help, the problem was the X vector zero needed to be a variable as well, not a fixed value.

The new one reads:

variable rotator equal .20324
variable linx equal 0
variable liny equal .26
variable linz equal .03

fix lin1 all move/mesh mesh lip linear/variable v_linx v_liny v_linz
fix lin2 all move/mesh mesh bucket linear/variable v_linx v_liny v_linz
fix rot1 all move/mesh mesh lip rotate/variable origin 0 .21656 .36962 axis 1 0 0 omega v_rotator
fix rot2 all move/mesh mesh bucket rotate/variable origin 0 .21656 .36962 axis 1 0 0 omega v_rotator