summaryrefslogtreecommitdiffstats
path: root/House.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-01-31 20:21:17 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-01-31 20:21:17 +0100
commit932a190de286e50797f474aacd0f207e87d29da1 (patch)
tree994dae627d1a7649e69c4ec2d033c1b3a283ad4f /House.h
parentfd3c8843d0acc1d27a9bcaea475ea864508fb64d (diff)
downloadc3d-932a190de286e50797f474aacd0f207e87d29da1.tar
c3d-932a190de286e50797f474aacd0f207e87d29da1.zip
Kollektor bearbeitet...
Diffstat (limited to 'House.h')
-rw-r--r--House.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/House.h b/House.h
index 0278726..68eb237 100644
--- a/House.h
+++ b/House.h
@@ -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_ */