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
Classes | |
| class | office |
| struct | s_conditions |
| struct | s_controls |
| struct | s_enduse |
| struct | s_hvac |
| struct | s_hvacdesign |
| struct | s_lighting |
| struct | s_plugs |
| struct | s_zonedata |
Enumerations | |
| enum | HCMODE { HC_OFF, HC_HEAT, HC_AUX, HC_COOL, HC_ECON } |
Functions | |
| int | office::create () |
| EXPORT int | create_office (OBJECT **obj, OBJECT *parent) |
| int | office::init (OBJECT *parent) |
| EXPORT int | init_office (OBJECT *obj, OBJECT *parent) |
| office::office (MODULE *module) | |
| TIMESTAMP | office::plc (TIMESTAMP t0, TIMESTAMP t1) |
| EXPORT TIMESTAMP | plc_office (OBJECT *obj, TIMESTAMP t1, PASSCONFIG pass) |
| TIMESTAMP | office::presync (TIMESTAMP t0, TIMESTAMP t1) |
| TIMESTAMP | office::sync (TIMESTAMP t0, TIMESTAMP t1) |
| EXPORT TIMESTAMP | sync_office (OBJECT *obj, TIMESTAMP t1, PASSCONFIG pass) |
Variables | |
| static office * | office::defaults = NULL |
| static CLASS * | office::oclass = NULL |
| enum HCMODE |
| int office::create | ( | ) | [inherited] |
Definition at line 208 of file office.cpp.
References defaults.
Referenced by create_office().
| int office::init | ( | OBJECT * | parent | ) | [inherited] |
Definition at line 216 of file office.cpp.
References s_hvacdesign::balance_temperature, s_plugs::capacity, s_lighting::capacity, s_hvacdesign::capacity, s_zonedata::control, s_hvac::cooling, s_controls::cooling_setpoint, s_hvacdesign::cop, s_zonedata::current, s_zonedata::design, s_hvacdesign::design_temperature, s_zonedata::exterior_ua, FL_NEW, s_zonedata::floor_area, s_zonedata::floor_height, FT_CLASS, FT_END, GETADDR, gl_find_next, gl_find_objects, gl_get_property, gl_set_dependent, gl_warning, s_zonedata::glazing_coeff, s_hvac::heating, s_controls::heating_setpoint, s_findlist::hit_count, s_zonedata::hvac, s_zonedata::interior_mass, s_zonedata::interior_ua, s_zonedata::lights, OBJECTHDR, s_conditions::pHumidity, s_zonedata::plugs, s_conditions::pSolar, s_conditions::pTemperature, s_object_list::rank, SAME, s_controls::setpoint_deadband, s_zonedata::window_area, and zone.
Definition at line 292 of file office.cpp.
References s_conditions::air_temperature, s_zonedata::current, s_zonedata::design, s_hvac::enduse, s_plugs::enduse, s_lighting::enduse, s_enduse::energy, s_zonedata::exterior_ua, s_zonedata::floor_area, s_zonedata::floor_height, s_zonedata::hvac, s_zonedata::interior_mass, s_zonedata::interior_ua, s_zonedata::lights, s_conditions::mass_temperature, s_hvac::mode, s_zonedata::plugs, s_enduse::power, s_conditions::pSolar, s_conditions::pTemperature, s_conditions::temperature_change, s_zonedata::total, TS_NEVER, TS_SECOND, s_zonedata::window_area, and zone.
Referenced by sync_office().