From c97113e17e902bfdb9b634301250e43c73d7e5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Sun, 17 Jan 2010 23:16:49 +0100 Subject: =?UTF-8?q?Schonwieder=20ne=20kleine=20=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Temparray.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Temparray.cpp b/Temparray.cpp index b16bb55..120b397 100644 --- a/Temparray.cpp +++ b/Temparray.cpp @@ -94,8 +94,8 @@ void Temparray::calcTemp(){ thermalresistance = ((width2 / 2 - (width2 - innerwidth2)/4) - (width / 2 - (width - innerwidth)/4)) / 0.9 * meterperunit / (specificconductivity * ((area + areabig) / 2)); - if(l!=5)thermalresistance2 = ((width / 2 - (width - innerwidth)/4) - - (width3 / 2 - (width3 - innerwidth3)/4)) / 0.9 * meterperunit / + if(l!=5)thermalresistance2 = (width3 / 2 - (width3 - innerwidth3)/4) - + (width / 2 - (width - innerwidth)/4) / 0.9 * meterperunit / (specificconductivity * ((area + areasmall) / 2)); capacity = specificconductivity *((((depth + innerdepth)/2)*((width + innerwidth)/2)* @@ -120,7 +120,7 @@ void Temparray::calcTemp(){ if(l!=5)temperatureold(i, j, k, l, m) = temperatureold(i, j, k, l, m) + ((temperatureold(i, j, k, l, m) - - temperatureold(i, j, k, l+1, m))*exp(-(1/tau13))); + temperatureold(i, j, k, l+1, m))*-exp(-(1/tau13))); if(l!=5)temperatureold(i, j, k, l+1, m) = temperatureold(i, j, k, l+1, m) - ((temperatureold(i, j, k, l, m) - temperatureold(i, j, k, l+1, m))*-exp(-(1/tau31))); -- cgit v1.2.3