UDF - Write data into file at the end of every time-step
Hello everyone,
I need to write a UDF to be executed with a transient simulation. I have specified the number of iterations to be carried out per time-step. I need to make a UDF that will write some data into a file at the end of each time-step. I don't want to see this at every iteration per time-step. Say, I specify 20 iterations per time-step. Then I want to have the data written at the end of 20th iteration or at the point where convergence is achieved for a time-step. Could someone tell me how can this be achieved? Thanks in advance! |
The EXECUTE_AT_END macro is executed at the end of each time step of a transient model...so if you write into your file inside this macro it will contain only the values at the end of each time step.
|
Quote:
|
Hi,
unfortunately, that did not work out. It is still printing values at every iteration per time-step. Could someone help me out on this? |
Quote:
In static analys it is called at the end of iteration Sent from my Lenovo K50-t5 using CFD Online Forum mobile app |
Hi Boh and qorka,
Thanks for the reply. So that means it has to do something with my code. I wrote a UDF to calculate the point of slowest blending in a mixing tank based on mass fraction of species. I tried running it on a Linux system with one node (16 cores) but I did not make it compatible for parallel processing. Am getting weird results. Have to go back and check where I made the mistake. |
|
..........................................
|
All times are GMT -4. The time now is 00:06. |