Hello and Welcome to recovery!
Please share the exact date of your surgery and which knee was replaced so we’re able to create a signature for you.
I am sorry you’re off to a rough start. You may want to step away from the PT for awhile, concentrate on rest, icing and elevation which should help with the swelling and pain. You can ice as often as you like, for as long as you want, taking care to always place fabric between bare skin and the ice source. If the spasms continue, you may want to consider Magnesium.
Magnesium supports the following:
Bone health
Healthy blood sugar
Cardiovascular health
Muscle relaxation and nerves
Promotes healthy sleep (falling asleep and staying asleep)
An article on Magnesium -
https://bonesmart.org/forum/threads/magnesium-is-a-star.20301/
Drinking 4-6 oz of Q-Tonic before bed which is a water that contains quinine may help also. Read the label as some of the waters do not contain quinine, but quinine flavoring instead.
I will leave our Recovery Guidelines also, with wishes for your comfort. I hope you find some relief soon. Please stay in touch and let us know how you’re doing.