I know that many closed form expressions exists for finding the final equilibrium temperature of a gas/liquid/solid mixture if the pressure is held constant, or if the solid/liquid does not change phase, but what about a simple case of a single solid being heated through a perfectly rigid and insulating container?
Let's say we have a perfectly rigid and insulating container with volume $V$ that contains a block of ice (amount defined in moles $n$) chilled to near absolute zero, then we pull a near-perfect vacuum. We then magically apply heat to the block of ice through the container (heat $Q$ is defined in Joules). If the energy applied is high enough, the block of ice would be instantly vaporized, but as the pressure increases, some of the gas will liquefy (or even solidify), following the phase diagram of water.
Given enough time for this container's insides to reach equilibrium, what would be the final temperature or the change of temperature? Finding the partial pressure is not important for me but might be needed to find the temperature?
I guess probably that an exact solution does not exist, but any approximation would be adequate to simulate this phenomenon in a computer. I've tried calculating this using gas equations, but they all either assume that pressure or temperature is constant.
If a solution can be found for the problem above, what about a slightly more complicated version where we put many different materials inside of that box, where each material is separated from others with a flexible membrane that only allows heat to pass through (the materials never mix). What would be the change of temperature after adding some heat?