I'll second everything that @Shoop says. Ice and movement in her friend. I know the pain is atrocious, but the better/more you work at it, the more beneficial it will be. I'll also echo at what @Tonik says as well. Pain meds do a number on your bowels and that isn't something you need to compound the problem.
If they didn't give her a device, make sure she is doing her foot pumps as often as she can. That will help lower the risk of a clot. Also have her walk on it as much as she can. Take the PT as seriously as she can. My therapist told me the harder I worked there, the more I'd reap the benefits once I was done. Best of luck to you both!