diff options
author | Constantin Riß <constantin.riss@dre.de> | 2010-01-31 20:21:17 +0100 |
---|---|---|
committer | Constantin Riß <constantin.riss@dre.de> | 2010-01-31 20:21:17 +0100 |
commit | 932a190de286e50797f474aacd0f207e87d29da1 (patch) | |
tree | 994dae627d1a7649e69c4ec2d033c1b3a283ad4f /House.h | |
parent | fd3c8843d0acc1d27a9bcaea475ea864508fb64d (diff) | |
download | c3d-932a190de286e50797f474aacd0f207e87d29da1.tar c3d-932a190de286e50797f474aacd0f207e87d29da1.zip |
Kollektor bearbeitet...
Diffstat (limited to 'House.h')
-rw-r--r-- | House.h | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -7,12 +7,17 @@ #include <list> #include <math.h> +#define TRANSVERSAL 0 +#define LONGITUDINAL 1 +#define FLAT 2 + class House { public: House(float inittemp0, int earthx0, int earthy0, int earthz0, float collectortemp0, float radiation0, float latitude0, float eta00, float k10, float k20, float collectorarea0, - float watthoursperhuman, int humans); + float roofangle0, float watthoursperhuman, int humans, int heaterenergy0); + std::list<Triangle> getTriangles(){ std::list<Triangle> triangles = temp.getTriangles(); return triangles; @@ -20,14 +25,19 @@ class House void calcefficiency(); void calctemp(); + void calcdiff(); + void calcneededenergy(); + void calccollectoroutput(int day, int time, int month); private: Temparray temp; - float collectortemp, latitude, radiation, eta0, k1, k2, watthoursperhuman, collectorarea; + Sun sun; + float collectortemp, latitude, radiation, eta0, k1, k2, watthoursperhuman, collectorarea, + heaterenergy, roofangle, collectoroutput; float tempinside[24], tempoutside[12][24], efficiencyflat[100], efficiencyvacuum[100], - anglecorrectionfactorflat[91], anglecorrectionfactortransversal[91], - anglecorrectionfactorlongitudinal[91]; - int humans; + anglecorrectionflat[91], anglecorrectiontransversal[91], + anglecorrectionlongitudinal[91], tempdifference[12][24], neededenergy[12][24]; + int humans, collectorstatus; }; #endif /* _HOUSE_H_ */ |