What I tried to do with both children is lift and roll their legs up a few times a day. I mostly did this during the few wake periods they had in a day - figuring if they weren't in casts this is when they would be doing these motions on their own. Be careful not to do it after nursing - they'll just spit up! Oops!
I just lift the legs up and rotate around from side to side.