Properties of a Correct Solution

The Data Constraints Table shows the data constraints on the output variables. The column for physical constraints gives the physical limitations on the range of values that can be taken by the variable.

VarPhysical Constraints
\({T_{\text{W}}}\)\({T_{\text{init}}}\leq{}{T_{\text{W}}}\leq{}{T_{\text{C}}}\)
\({T_{\text{P}}}\)\({T_{\text{init}}}\leq{}{T_{\text{P}}}\leq{}{T_{\text{C}}}\)
\({E_{\text{W}}}\)\({E_{\text{W}}}\geq{}0\)
\({E_{\text{P}}}\)\({E_{\text{P}}}\geq{}0\)

Output Data Constraints

A correct solution must exhibit the law of conservation of energy. This means that the change in heat energy in the water should equal the difference between the total energy input from the heating coil and the energy output to the PCM. This can be shown as an equation by taking GD:htFluxWaterFromCoil and GD:htFluxPCMFromWater, multiplying each by their respective surface area of heat transfer, and integrating each over the simulation time, as follows:

\[{E_{\text{W}}}=\int_{0}^{t}{{h_{\text{C}}}\,{A_{\text{C}}}\,\left({T_{\text{C}}}-{T_{\text{W}}}\left(t\right)\right)}\,dt-\int_{0}^{t}{{h_{\text{P}}}\,{A_{\text{P}}}\,\left({T_{\text{W}}}\left(t\right)-{T_{\text{P}}}\left(t\right)\right)}\,dt\]

In addition, the change in heat energy in the PCM should equal the energy input to the PCM from the water. This can be expressed as

\[{E_{\text{P}}}=\int_{0}^{t}{{h_{\text{P}}}\,{A_{\text{P}}}\,\left({T_{\text{W}}}\left(t\right)-{T_{\text{P}}}\left(t\right)\right)}\,dt\]

Equations (FIXME: Equation 7) and (FIXME: Equation 8) can be used as “sanity” checks to gain confidence in any solution computed by SWHS. The relative error between the results computed by SWHS and the results calculated from the RHS of these equations should be less than \({C_{\text{tol}}}\) FR:Verify-Energy-Output-Follow-Conservation-of-Energy.