diff options
author | Constantin Riß <constantin.riss@dre.de> | 2010-01-17 23:16:49 +0100 |
---|---|---|
committer | Constantin Riß <constantin.riss@dre.de> | 2010-01-17 23:16:49 +0100 |
commit | c97113e17e902bfdb9b634301250e43c73d7e5b3 (patch) | |
tree | e9eae6d682f41b37f495b313ab84d27f345b787c | |
parent | e1261ae6875978e29550c19b0f0d960aa50b3482 (diff) | |
download | c3d-c97113e17e902bfdb9b634301250e43c73d7e5b3.tar c3d-c97113e17e902bfdb9b634301250e43c73d7e5b3.zip |
Schonwieder ne kleine Änderung
-rw-r--r-- | Temparray.cpp | 6 |
1 files 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))); |