NUFgroup / IBPM.jl

Julia implementation of the Immersed Boundary Projection Method
3 stars 3 forks source link

let user prescribe body motion as a function. constraints on user? #14

Closed ajgoza closed 3 years ago

jcallaham commented 3 years ago

There is a bit of infrastructure for this with the MotionFunction and TangentSE2 types, but I don't know if there are currently any validated examples where this is actually used.

ajgoza commented 3 years ago

agreed, and I think these are useful starting points. I wonder if we can have a more general framework where the user can prescribe a motion function, perhaps as an array, like motion = [ t->sin(5t), t->0t, ...]

where the first two entries are the x&y components of the velocity of the center of mass, and then perhaps the third is a radial velocity and the 4th and 5th are the coords of the center of rotation? I'm not sure of the exact form, but it would be slick (IMO) to have the user be able to provide more general motion and have the code take care of that under the hood