How can I do an calculation where it uses the previous answer to calculate the next
이전 댓글 표시
So I want to model how a water tank changes in temperature when water is put in. So my Tank is 3600 L capacity and the flow into the water is 360 L/hr. If the water temperatre at the start is 290 Kelvin and the water temperature entering over 24 hours is as follows:
So this is what i need to do.
(3600*Tt+360*Twout/(3600+360)) %where Twout is as shown in the picture
%Tt is the variable that changes every hour so for the first hour Tt is equal to 290, but in the second hour it is equal to (3600*Tt+360*Twout)/ and so on for 24 hours
댓글 수: 2
Renato SL
2019년 8월 6일
From what I understand:
- Tt0 is known (your example is 290).
- Tt1 = 3600*Tt0 + 360*Twout(1) / (3600 + 360)
- Tt2 = 3600*Tt1 + 360*Twout(2) / (3600 + 360), and so on
Is this it?
rammah nagi
2019년 8월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!