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

UDF to switch on energy equation after X iteration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2005, 11:29
Default UDF to switch on energy equation after X iteration
  #1
mat w
Guest
 
Posts: n/a
Hi all, does anyone have a UDF that I could use to switch on the energy equation on a problem after, say 500 iterations? Or even better, one that switches the energy equation on after the continuity residual hits 1e-6? It would save me lots of time when running problems over night.

Any help or advice much appreciated.

Thanks, mat
  Reply With Quote

Old   December 5, 2005, 01:28
Default Re: UDF to switch on energy equation after X itera
  #2
nasser
Guest
 
Posts: n/a
plz more explain do you want to enable energy equation after 500 iter?

  Reply With Quote

Old   December 5, 2005, 03:40
Default Re: UDF to switch on energy equation after X itera
  #3
mat w
Guest
 
Posts: n/a
That's right nasser - I want to "enable" or turn on the energy equation (Solve-Controls-Solution) after say 500 equations. It would be even better if I could switch on the energy equation after the continuity residuals reduced to below a certain level.

thanks mat
  Reply With Quote

Old   December 5, 2005, 04:23
Default Re: UDF to switch on energy equation after X itera
  #4
nasser
Guest
 
Posts: n/a
Do you use segregated model? if you use this model you can. use under relaxtation method bye
  Reply With Quote

Old   December 5, 2005, 04:36
Default Re: UDF to switch on energy equation after X itera
  #5
mat w
Guest
 
Posts: n/a
I am using a segregated solver, but how will the "under relaxation method" help?

I'm not sure what you mean exactly - a UDF is required in order to automatically enable the energy equation after a certain number of residuals, I'm just not sure how to write it.

Thanks anyway, mat
  Reply With Quote

Old   December 5, 2005, 07:26
Default Re: UDF to switch on energy equation after X itera
  #6
steph
Guest
 
Posts: n/a
Hello, you needn't UDF ... you can use a file.jou :

/file/read-case toto.cas.gz

/file/read-data toto.dat.gz

;; you do 500 iterations ...

/solve/iterate 500

;; ... after you switch on energy equation

/define/models/energy? yes

/solve/iterate 1500

/file/write-data toto_end.dat.gz

steph.
  Reply With Quote

Old   December 5, 2005, 07:35
Default Re: UDF to switch on energy equation after X itera
  #7
mat w
Guest
 
Posts: n/a
Steph,

Thanks for that-sounds good. I'll give it a whirl.

Cheers for the help - it'll save me lots of time.

Mat w
  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
simpleFoam with energy equation sega OpenFOAM Programming & Development 6 January 26, 2013 06:42
Pohlhausen energy equation MATLAB help abe_cooldude Main CFD Forum 2 May 3, 2010 16:58
How to discretize of energy equation ?? Asghari FLUENT 0 October 12, 2006 08:09
How to discretize of energy equation ?? Asghari FLUENT 0 October 12, 2006 08:06
UDF sources for energy equation el FLUENT 0 July 1, 2005 08:38


All times are GMT -4. The time now is 10:33.