|
[Sponsors] |
March 4, 2022, 18:01 |
stop test inside (while) and Nusselt number
|
#1 |
New Member
Ammar
Join Date: Jan 2022
Posts: 11
Rep Power: 4 |
I have just searched the Nusselt number delicate and compared it with those of other literatures,
I found that I have to do the test of stop inside the loop "While", here is what I have added in the Matlab script: %************************************************* * initialize Theta; Tnew = Theta; Told = Tnew; while (norm(Tnew-Told,1)/norm(Tnew),1) <= 1e-6 Told = Tnew; ..... ..... The body of the program. ..... Tnew = Theta (Calculated); end (while) %************************************************* (it doesn't work!!! it just passes the 1st iteration.) i'll be grateful for any help ! |
|
March 4, 2022, 21:47 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66 |
I would recommend testing. If you really want to test if a flag is being respected or not, try:
Code:
while false %body of code end Last edited by LuckyTran; March 5, 2022 at 01:25. |
|
|
|