|
[Sponsors] |
UDF to switch on energy equation after X iteration |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 3, 2005, 12:29 |
UDF to switch on energy equation after X iteration
|
#1 |
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 |
|
December 5, 2005, 02:28 |
Re: UDF to switch on energy equation after X itera
|
#2 |
Guest
Posts: n/a
|
plz more explain do you want to enable energy equation after 500 iter?
|
|
December 5, 2005, 04:40 |
Re: UDF to switch on energy equation after X itera
|
#3 |
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 |
|
December 5, 2005, 05:23 |
Re: UDF to switch on energy equation after X itera
|
#4 |
Guest
Posts: n/a
|
Do you use segregated model? if you use this model you can. use under relaxtation method bye
|
|
December 5, 2005, 05:36 |
Re: UDF to switch on energy equation after X itera
|
#5 |
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 |
|
December 5, 2005, 08:26 |
Re: UDF to switch on energy equation after X itera
|
#6 |
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. |
|
December 5, 2005, 08:35 |
Re: UDF to switch on energy equation after X itera
|
#7 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam with energy equation | sega | OpenFOAM Programming & Development | 6 | January 26, 2013 07:42 |
Pohlhausen energy equation MATLAB help | abe_cooldude | Main CFD Forum | 2 | May 3, 2010 17:58 |
How to discretize of energy equation ?? | Asghari | FLUENT | 0 | October 12, 2006 09:09 |
How to discretize of energy equation ?? | Asghari | FLUENT | 0 | October 12, 2006 09:06 |
UDF sources for energy equation | el | FLUENT | 0 | July 1, 2005 09:38 |