CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF of iterations

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

Like Tree1Likes
  • 1 Post By FJ

LinkBack Thread Tools Display Modes
Old   May 19, 2004, 07:52
Default UDF of iterations
Posts: n/a
I want to have UDF :

from 1 ~ 500 iteration , pressure-outlet=101000pa

when 500 iteration finished, 101200pa.

file of *.c is below, but have error.

Anyone help me? ............................................. #include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; int iter;

iter = N_ITER;

if (iter < 500)

F_PROFILE(f, thread, position) = 101000; else

F_PROFILE(f, thread, position) = 101200;

} .................................................. ..
  Reply With Quote

Old   May 19, 2004, 18:33
Default Re: UDF of iterations
Posts: n/a
As far as I understood, you want to have a pressure outlet b.c. of a value 101000pa when ite. lower than 500 and 101200 pa after 500 ite. I think, you won't get a b.c. like that, even your UDF runs fine, because hooking for UDF can not be made in UDF itself. You must do it manually...

good luck...

  Reply With Quote

Old   May 23, 2004, 21:05
Default Re: UDF of iterations
Posts: n/a

"nres" should be used instead of "N_ITER".

dxm2008 likes this.
  Reply With Quote

Old   May 23, 2004, 21:55
Default Re: UDF of iterations
Posts: n/a
It is OK!

Thank you very very much!
  Reply With Quote


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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16

All times are GMT -4. The time now is 11:29.