From ce4aa5800b7a8efa3608f6fa9fa547d724ddf686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=DF?= Date: Mon, 1 Feb 2010 20:36:16 +0100 Subject: ... --- Temparray.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Temparray.cpp') 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) = -- cgit v1.2.3