|
[Sponsors] |
May 19, 2004, 08:52 |
UDF of iterations
|
#1 |
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; } .................................................. .. |
|
May 19, 2004, 19:33 |
Re: UDF of iterations
|
#2 |
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 |
|
May 23, 2004, 22:05 |
Re: UDF of iterations
|
#3 |
Guest
Posts: n/a
|
Hi,
"nres" should be used instead of "N_ITER". FJ |
|
May 23, 2004, 22:55 |
Re: UDF of iterations
|
#4 |
Guest
Posts: n/a
|
It is OK!
Thank you very very much! |
|
August 29, 2018, 00:07 |
|
#5 | |
New Member
Etienne Lin
Join Date: Aug 2017
Location: la Chine
Posts: 4
Rep Power: 9 |
Quote:
I am using nres in my udf, but i can tell the difference between nres and N_ITER, can you explain it? thanks |
||
|
|
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 |