diff options
-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))); |