rotating spin-up

Submitted by jwarnett on Fri, 11/25/2011 - 12:27

Hey

I wanted to rotate a mesh using the fix/mesh/gran, but I didn't want the rotation to be instantaneous. Is there anyway to define a spin up dw/dt until it reaches the desired w? I'm pretty sure there isn't but thought I'd ask?

One work around would be to alter the rotation every few timesteps, but this would be clunky, and would make for a messy input file. So, assuming this capability isnt there, how easy can I program this in, and where can I do it?

Jay

ckloss's picture

ckloss | Fri, 11/25/2011 - 12:42

Hi Jay, yes you are right, that could be programmed (fix_move_tri.h/cpp). Or, more conveniently you can do this in a loop, where you increment a variable, unfix the previous fix and issue a new one (no messy input script). See doc for variable and jump for details

Cheers, Christoph