Hi all.
I'm running a script where I have a mesh/surface shutter that is rotating counterclockwise from a starting angle. I want to unfix this mesh once it reaches a certain angle and I've been trying to think about the best way to do this in LIGGGHTS.
The best idea I had was to track the co-ordinate of a point on the mesh (i.e. a bottom corner, which is one of the co-ordinates I inputted to make the mesh) and use an if statement when this co-ordinate exceeds a certain value.
However, I don't know how to track a point on a mesh in LIGGGHTS! I just need to read off the z value of the point every n intervals. If anyone could let me know that would solve my problem.
Kind regards,
Matt Kesseler.
j-kerbl | Mon, 02/13/2017 - 16:48
Hi Matt,
Hi Matt,
hmm it might prove rather tricky to extract mesh coordinates, I think only the servo wall has accessible data directly stored for positions.
But since you are prescribing the mesh motion via move mesh (correct?), can't you calculate the necessary time-steps with a variable command? Afterwards you could use this number of steps directly for the run ${nsteps} and unfix the mesh afterwards.
Cheers,
Josef