where:
is the temperature of the air inside the building
is 
is the temperature of the mass inside the buildnig (e.g, furniture, inside walls etc)
is 
is the ambient temperature outside air
is the UA of the building itself
is the UA of the mass of the furniture, inside walls etc
is the heat capacity of the mass of the furniture inside the walls etc
is the heat capacity of the air inside the building
is the heat rate from internal heat gains of the building (e.g., plugs, lights, people)
is the heat rate from HVAC unit
is the heat rate from the sun (solar heating through windows etc)
General first order ODEs (with
defined by inspection above):
where





General form of second order ODE
where




Solution to second order ODEs for indoor and mass temperatures are
where:



is the elapsed time
is the temperature of the air inside the building at time 
is
, e.g initial temperature of the air inside the building
is
e.g the initial temperature gradient of the air inside the building
Enumerations | |
| enum | HCMODE { HC_OFF, HC_HEAT, HC_AUX, HC_COOL, HC_ECON, HC_VENT } |
| enum HCMODE |