What is the command to stop calculation in UDF?
Hi everyone,
I want to implement in UDF that stops iteration when the net value of the heat transfer rate of import and export approaches the given energy source term in UDF. I have found that implementing this process using Scheme makes the calculation very slow. I am not sure if it will be faster to implement this process using UDF. However, I don't know what is the command to control the iteration stop in UDF. https://img.pterclub.com/images/2023...1_11-01-14.jpg |
I wrote a test udf
Quote:
https://img.pterclub.com/images/2023/04/21/S.jpg |
Quote:
|
I know 'execute command' can do this, but I'm just curious whether it can work in udf. What's more, I'm not sure if scheme can get some variables during the previous iteration, which are necessary for convergence judgment.
|
Hi. I'm not 100 percent sure, but I think UDF alone cannot stop a simulation.
It has to be through some combination of UDF and Scheme. |
OK,I got it. So do you know whether scheme/tui can get variables during the previous iteration?
|
you may have almost total functionality of fluent through scheme, but its not documented
you can't run TUI commands from UDF |
Quote:
|
All times are GMT -4. The time now is 01:23. |