Use fix move/mesh to achieve a complicated motion

Submitted by alvin3368 on Mon, 02/25/2019 - 12:19

Hi all,

I am wondering, if I could move a mesh along a curve like "8" with the command "fix move/mesh"? It is hard to achieve it with a combination of linear, wiggle and rotate. I have the values of x and y on the curve. But I don't know how to simulate the motion in Liggghts.

Thanks.

Best regards.
Alvin

arnom's picture

arnom | Thu, 02/28/2019 - 12:59

the easiest way of achieving this would be likely by implementing the motion in a new mesh mover in C++

In LIGGGHTS premium we have a feature that would allow for such movement. If you are part of a company please contact us if you are interested in that.

DCS team member & LIGGGHTS(R) core developer

richti83's picture

richti83 | Fri, 03/01/2019 - 12:28

Why not to use linear/variable. When you deviate your known positions (using spreadsheet or matlab) piecewise and than use variables for vx_in,vy_in,vz_in of type file and a numerical variable vx equal v_vx_in you can iterate through the list of velocities line by line using next vx_in command.
https://www.cfdem.com/media/DEM/docu/variable.html

When a file-style variable is defined, the file is opened and the string on the first line is read and stored with the variable. This means the variable can then be evaluated as many times as desired and will return that string. There are two ways to cause the next string from the file to be read: use the next command or the next() function in an equal- or atom-style variable, as discussed below.

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