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

Automatically raise certain under-relaxation factors every n iterations

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By KaLium
  • 1 Post By voa_cfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 10:18
Question Automatically raise certain under-relaxation factors every n iterations
  #1
New Member
 
voa_cfd's Avatar
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
voa_cfd is on a distinguished road
Hello CFD-user,

for my stationary simulation i want to raise the under-ralaxation factors in the solution controls menu every 300 iterations by 0.2. Is there a way to handle this using for example an udf?
Changing the values manually every time is very annoying, cause there are about 5000 Iterations to calculate.
In the ANSYS Manuals i couldn't find something about it.

Thanks for your answer.
voa_cfd is offline   Reply With Quote

Old   June 8, 2017, 07:44
Default
  #2
Senior Member
 
KaLium's Avatar
 
Kal-El
Join Date: Apr 2017
Location: Finland
Posts: 150
Rep Power: 9
KaLium is on a distinguished road
You can control them with console commands -> You can make a journal
voa_cfd likes this.
KaLium is offline   Reply With Quote

Old   June 8, 2017, 17:12
Smile
  #3
New Member
 
voa_cfd's Avatar
 
Join Date: Jun 2017
Posts: 2
Rep Power: 0
voa_cfd is on a distinguished road
Thank you KaLium, now it works great with the following journal file:

solve/set/under-relaxation/pressure 0.1
solve/set/under-relaxation/mom 0.5
solve/set/under-relaxation/k 0.5
solve/set/under-relaxation/e 0.5
solve/iterate 300

solve/set/under-relaxation/pressure 0.12
solve/set/under-relaxation/mom 0.52
solve/set/under-relaxation/k 0.52
solve/set/under-relaxation/e 0.52
solve/iterate 300
...

or shorter:

so set ur pres 0.1 mom 0.5 k 0.5 e 0.5
solve/iterate 300
so set ur pres 0.12 mom 0.52 k 0.52 e 0.52
solve/iterate 300
...
KaLium likes this.
voa_cfd is offline   Reply With Quote

Old   June 9, 2017, 04:29
Default
  #4
Senior Member
 
KaLium's Avatar
 
Kal-El
Join Date: Apr 2017
Location: Finland
Posts: 150
Rep Power: 9
KaLium is on a distinguished road
Well done!
KaLium is offline   Reply With Quote

Reply

Tags
raise, udf, under relaxation, under-relaxation, underrelaxation


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 15:26
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
should Courant number always be kept below 1? wc34071209 OpenFOAM Running, Solving & CFD 16 March 9, 2014 20:31
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 02:59.