CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF:Accessing variables at different iteration lev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2002, 05:27
Default UDF:Accessing variables at different iteration lev
  #1
varghese
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
  Reply With Quote

Old   August 13, 2002, 05:32
Default Re: UDF:Accessing variables at different iteration
  #2
Anthony Wachs
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
  Reply With Quote

Old   August 13, 2002, 07:02
Default Re: UDF:Accessing variables at different iteration
  #3
varghese
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
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:35.