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.
Refname | IM:eBalanceOnWtr |
---|---|
Label | Energy balance on water to find the temperature of the water |
Input | TC, Tinit, tfinal, AC, hC, CW, mW |
Output | TW |
Input Constraints | TC≥Tinit |
Output Constraints | |
Equation | dTWdt+1τWTW=1τWTC |
Description |
|
Notes |
|
Source | koothoor2013 (with PCM removed) |
RefBy | UC: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(TC−TW)
Dividing Equation (2) by mWCW, we obtain:
dTWdt=hCACmWCW(TC−TW)
By substituting τW (from DD:balanceDecayRate), this can be written as:
dTWdt=1τW(TC−TW)
Refname | IM:heatEInWtr |
---|---|
Label | Heat energy in the water |
Input | Tinit, mW, CW, mW |
Output | EW |
Input Constraints | |
Output Constraints | |
Equation | EW(t)=CWmW(TW(t)−Tinit) |
Description |
|
Notes |
|
Source | koothoor2013 |
RefBy | FR:Output-Values and FR:Calculate-Values |