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

changing variables in any iteration using udfs

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2006, 04:05
Default changing variables in any iteration using udfs
  #1
Asghari
Guest
 
Posts: n/a
Hi all;

I want to change some scalar variables ;for example; temperature , vof ,... in end of any iteration based on the my algorithm using udfs. is it feasible? If your answer is yes , please give me a udf example for this porpuse and help me.

Best regards.
  Reply With Quote

Old   August 11, 2006, 03:13
Default Re: changing variables in any iteration using udfs
  #2
Asghari
Guest
 
Posts: n/a
For example,Can we use following udf for changing temperature and vof on some cells?

Define_adjust {

bigin_c_loop

{

/...stuff.../

C_VOF(c,t0)=/..stuff.../

C_T(c,t)=/...stuff.../

}

end_c_loop

}

Please give me a suggestion .

Thanx in advance. -Asghari-
  Reply With Quote

Old   August 11, 2006, 10:06
Default Re: changing variables in any iteration using udfs
  #3
cadaei
Guest
 
Posts: n/a
I don't think it possbile to set scalar values in this way. You can do it by using a correctly linearised source term. See Numerical Fluid Flow and Heat Transfer by Patankar or www.cfd-online.com/Wiki/Source_term_linearization
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:23
Parallel runs slower with MTU=9000 than MTU=1500 Javier Larrondo FLUENT 0 October 28, 2007 23:30
DPM variables in UDF's Cath Noakes FLUENT 1 March 31, 2005 13:09
UDF:Accessing variables at different iteration lev varghese FLUENT 2 August 13, 2002 08:02
Heat exchanger problem chiseung FLUENT 16 October 20, 2001 05:36


All times are GMT -4. The time now is 00:34.