diff options
author | Constantin Riß <constantin.riss@dre.de> | 2010-02-01 20:36:16 +0100 |
---|---|---|
committer | Constantin Riß <constantin.riss@dre.de> | 2010-02-01 20:36:16 +0100 |
commit | ce4aa5800b7a8efa3608f6fa9fa547d724ddf686 (patch) | |
tree | 5771e6dfeaf2c56ea8b63dc112000e413e0dfbfb /Temparray.cpp | |
parent | 932a190de286e50797f474aacd0f207e87d29da1 (diff) | |
download | c3d-ce4aa5800b7a8efa3608f6fa9fa547d724ddf686.tar c3d-ce4aa5800b7a8efa3608f6fa9fa547d724ddf686.zip |
...
Diffstat (limited to 'Temparray.cpp')
-rw-r--r-- | Temparray.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Temparray.cpp b/Temparray.cpp index 83f91f0..d2379f2 100644 --- a/Temparray.cpp +++ b/Temparray.cpp @@ -55,6 +55,7 @@ void Temparray::calcTemp(){ float meterperunit = 3.0; float width, height, depth, innerwidth, innerdepth; float width2, height2, depth2, innerwidth2, innerdepth2; + float loadableenergy, unloadableenergy; for(int i = 0; i < sx; ++i) { for(int j = 0; j < sy; ++j) { @@ -139,7 +140,10 @@ void Temparray::calcTemp(){ if(m % 2 == 1)capacity = specificcapacity *((((width - innerwidth)/2)* ((depth + innerdepth)/2)*height) / 0.9 * meterperunit); - + + loadableenergy = (probetemp - temperatureold(i, j, k, l, m))/thermalresistance/10; + unloadableenergy = (temperatureold(i, j, k, l, m)-21.5)/thermalresistance/10; + tau12 = capacity * thermalresistance; temperaturenew(i, j, k, l, m) = |