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

UDF of iterations

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FJ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2004, 08:52
Default UDF of iterations
  #1
h6h6
Guest
 
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, 19:33
Default Re: UDF of iterations
  #2
Melih
Guest
 
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...

Melih
  Reply With Quote

Old   May 23, 2004, 22:05
Default Re: UDF of iterations
  #3
FJ
Guest
 
Posts: n/a
Hi,

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

FJ
dxm2008 likes this.
  Reply With Quote

Old   May 23, 2004, 22:55
Default Re: UDF of iterations
  #4
h6h6
Guest
 
Posts: n/a
It is OK!

Thank you very very much!
  Reply With Quote

Old   August 29, 2018, 00:07
Default
  #5
New Member
 
Etienne Lin
Join Date: Aug 2017
Location: la Chine
Posts: 4
Rep Power: 9
hongzhilin is on a distinguished road
Quote:
Originally Posted by FJ
;112731
Hi,

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

FJ
hi,
I am using nres in my udf, but i can tell the difference between nres and N_ITER, can you explain it?

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


All times are GMT -4. The time now is 09:20.