00001 00009 #ifndef _REFRIGERATOR_H 00010 #define _REFRIGERATOR_H 00011 00012 #include "residential.h" 00013 00014 class refrigerator 00015 { 00016 private: 00017 complex *pVoltage; // reference to the assigned panel circuit voltage 00018 house *pHouse; // reference to the parent house 00019 00020 public: 00021 double size; 00022 double rated_capacity; 00023 double thermostat_deadband; 00024 double UAr; 00025 double UAf; 00026 double Tair; 00027 double Tout; 00028 double Tset; 00029 double Cf; 00030 double Qr; 00031 double COPcoef; 00032 00033 complex power_kw; // total power demand [kW] 00034 double power_factor; 00035 double kwh_meter; // energy used since start of simulation [kWh] 00036 00037 public: 00038 00039 static CLASS *oclass; 00040 static refrigerator *defaults; 00041 refrigerator(MODULE *module); 00042 ~refrigerator(); 00043 00044 int create(); 00045 int init(OBJECT *parent); 00046 TIMESTAMP sync(TIMESTAMP t0, TIMESTAMP t1); 00047 }; 00048 00049 #endif // _REFRIGERATOR_H 00050