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

changing variables in any iteration using udfs

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 10, 2006, 03: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, 02: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, 09: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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
snappyHexMesh aborting Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 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 12:09
UDF:Accessing variables at different iteration lev varghese FLUENT 2 August 13, 2002 07:02
Heat exchanger problem chiseung FLUENT 16 October 20, 2001 04:36


All times are GMT -4. The time now is 21:03.