CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Iterations (https://www.cfd-online.com/Forums/siemens/54455-iterations.html)

Ant March 18, 2005 06:01

Iterations
 
I'm using STAR CD version 3.24. If I set the number of iterations at 1000000 or more,

? FORTRAN Runtime Error: ? Illegal character in numeric imput ? READ(UNIT=10,...

I don't need 1000000 iterations, it was just a large number to ensure that it wouldn't stop before meeting the residual conditions, but I wasted a lot of time figuring out that this was the problem rather than the rest of my setup. AFAIK there is no error message other than the above.

Has anyone else had this problem? Is there a way to ensure it doesn't happen?

CPF March 18, 2005 15:59

Re: Iterations
 
The easy solution is don't set the number of iterations to 1000000. If you look at the problem file you'll see that where the iteration number is, there is just *********.

As a rule of thumb, think about what you are doing, and don't enter stupid numbers into CFD codes.


Ant March 19, 2005 05:33

Re: Iterations
 
Of course I realise not to use 1000000, but this is not the point. THe only stupidity on my part was not checking the problem file. But there is nothing wrong with entering an arbitrarily large number to ensure that it will not stop unless it has converged. My point was only to note that the message STAR gives you is not easy to relate to the cause.

And perhaps since I've only been using STAR since January, there is a possibility I might enter stupid numbers from time to time..... we all start somewhere

steve March 21, 2005 13:10

Re: Iterations
 
You didn't make a stupid mistake and in fact the error message didn't even come from STAR - it came from the OS or more probably the run-time component of the compiler as it tried to read an invalid field. In a perfect world, when you entered the number, pro-STAR should have prevented you from entering something that big if it couldn't write it out. On the other hand, any given analysis requires thousands of numbers to be entered and checked for sanity and occasionally one slips by the checks because the programmer never considered the possibility or for some other disconnect. You got caught in an unlucky combination. If you report it to the support people it should get fixed so it doesn't happen to you or the next guy again.

Ant March 21, 2005 16:46

Re: Iterations
 
That's a good idea, thanks, I'l do that

CPF March 24, 2005 16:30

Re: Iterations
 
Not sure I agree. There is everything wrong with entering arbirtraily large numbers, especially in a Fortran program. Even Excel will throw a wobbler if you overflow it.

Part of being a good CFD engineer is not leaving these things to chance. Every value you enter should be considered.

Bad workmen don't blame their tools

Ant March 25, 2005 13:50

Re: Iterations
 
"Bad workmen don't blame their tools"

Whom do they blame then? ;)

Well, I admit it was a bad idea and it was my mistake, but I don't think it would be unreasonable for it to be documented for the beginners, or at least throw up an error message that can be connected.. but this is perhaps an obvious point for somebody with experience and there are probably other things they need to work on.

Thanks for making me think about the problem a bit more though

Ant


All times are GMT -4. The time now is 01:20.