Processing math: 100%

Instance Models

This section transforms the problem defined in the problem description into one which is expressed in mathematical terms. It uses concrete symbols defined in the data definitions to replace the abstract symbols in the models identified in theoretical models and general definitions.

The goal GS:Predict-Water-Temperature is met by IM:eBalanceOnWtr and the goal GS:Predict-Water-Energy is met by IM:heatEInWtr.

RefnameIM:eBalanceOnWtr
LabelEnergy balance on water to find the temperature of the water
InputTC, Tinit, tfinal, AC, hC, CW, mW
OutputTW
Input ConstraintsTCTinit
Output Constraints
EquationdTWdt+1τWTW=1τWTC
Description
  • t is the time (s)
  • TW is the temperature of the water (C)
  • τW is the ODE parameter for water related to decay time (s)
  • TC is the temperature of the heating coil (C)
Notes
  • τW is calculated from DD:balanceDecayRate.
  • The above equation applies as long as the water is in liquid form, 0<TW<100 (C) where 0 (C) and 100 (C) are the melting and boiling point temperatures of water, respectively (A:Water-Always-Liquid).
Sourcekoothoor2013 (with PCM removed)
RefByUC:No-Internal-Heat-Generation, FR:Output-Values, FR:Find-Mass, and FR:Calculate-Values

Detailed derivation of the energy balance on water:

To find the rate of change of TW, we look at the energy balance on water. The volume being considered is the volume of water in the tank VW, which has mass mW and specific heat capacity, CW. Heat transfer occurs in the water from the heating coil as qC (GD:htFluxWaterFromCoil), over area AC. No heat transfer occurs to the outside of the tank, since it has been assumed to be perfectly insulated (A:Perfect-Insulation-Tank). Since the assumption is made that no internal heat is generated (A:No-Internal-Heat-Generation-By-Water), g=0. Therefore, the equation for GD:rocTempSimp can be written as:

mWCWdTWdt=qCAC

Using GD:htFluxWaterFromCoil for qC, this can be written as:

mWCWdTWdt=hCAC(TCTW)

Dividing Equation (2) by mWCW, we obtain:

dTWdt=hCACmWCW(TCTW)

By substituting τW (from DD:balanceDecayRate), this can be written as:

dTWdt=1τW(TCTW)

RefnameIM:heatEInWtr
LabelHeat energy in the water
InputTinit, mW, CW, mW
OutputEW
Input Constraints
Output Constraints
EquationEW(t)=CWmW(TW(t)Tinit)
Description
  • EW is the change in heat energy in the water (J)
  • t is the time (s)
  • CW is the specific heat capacity of water (JkgC)
  • mW is the mass of water (kg)
  • TW is the temperature of the water (C)
  • Tinit is the initial temperature (C)
Notes
  • The above equation is derived using TM:sensHtE.
  • The change in temperature is the difference between the temperature at time t (s), TW and the initial temperature, Tinit (C).
  • This equation applies as long as 0<TW<100C (A:Water-Always-Liquid, A:Atmospheric-Pressure-Tank).
Sourcekoothoor2013
RefByFR:Output-Values and FR:Calculate-Values