|
[Sponsors] |
UDF:Accessing variables at different iteration lev |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2002, 05:27 |
UDF:Accessing variables at different iteration lev
|
#1 |
Guest
Posts: n/a
|
Dear All,
I wanted to write a UDF for iteration error analysis, which requires solution at different iteration levels. Can somebody tell me, how can one access the values of the same solution variable, at different iteration levels, in Fluent UDF. Greetings, Varghese |
|
August 13, 2002, 05:32 |
Re: UDF:Accessing variables at different iteration
|
#2 |
Guest
Posts: n/a
|
Hi,
Fluent does not allow you to access to a same solution variable at different iteration levels since it is not stored owing to memory purposes. But you can use the DEFINE_ADJUST function which is called by the fluent solver at every iteration. Thus, your DEFINE_ADJUST function would be dedicated to write the variable you are concerned with in a file, that would be numbered like file%i.res (%i is the iteration number) for instance. At the end of your calculation, just fetch the different files and post-treat them using a mere in-house code you would have developed to perform the error analysis (in C or Fortran or whatever langage you are keen on). Well, obviously, I never tested that solution but I think it might work. Moreover, if your calculation needs about some hundreds (or even thousands) iterations to converge, you are likely to obtain a rather great number of files, that would imply large memory storage. A solution could be to store the variables every x iteration, with x a convenient value greater than 1. Hope it could help, Best regards, Anthony |
|
August 13, 2002, 07:02 |
Re: UDF:Accessing variables at different iteration
|
#3 |
Guest
Posts: n/a
|
Dear Anthony,
It looks like a possible solution to the problem. But I have to learn more about the functions of DEFINE_ADJUST in UDF. Thank you very much for the suggestion, Varghese |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 03:23 |
Parallel runs slower with MTU=9000 than MTU=1500 | Javier Larrondo | FLUENT | 0 | October 28, 2007 22:30 |
changing variables in any iteration using udfs | Asghari | FLUENT | 2 | August 11, 2006 09:06 |
Creating, loop or iteration using expression edito | Jan | CFX | 3 | July 28, 2003 11:01 |
Heat exchanger problem | chiseung | FLUENT | 16 | October 20, 2001 04:36 |