CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF Hooks

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

LinkBack Thread Tools Display Modes
Old   May 16, 2002, 06:44
Default UDF Hooks
Posts: n/a
Dear all,

I am using User-Definded Funtion Hooks(UDFH) as my k-e boundary conditions are changing with the inlet velocity condition.

I have set "initialization function" as inlet velocity, However the results were same as not using this UDF Hooks.

Can anyone tell me what this UDFH actually does?


  Reply With Quote

Old   May 17, 2002, 02:59
Default Re: UDF Hooks
Posts: n/a

You don't need to use "initialization function"(DEFINE_ININT) and DEFINE_PROFILE function should be used.

This function "DEFINE_INIT" is used when all solutions are initialized(i.e. At an initial iteration ).

  Reply With Quote

Old   May 17, 2002, 04:11
Default Re: UDF Hooks
Posts: n/a
Thanks Keil.

I still don't fully understand. Maybe I need to explain my case a bit more. I have 3 inlet condition for a Jet using k-e model. (A) inlet Velocity(e.g changes with time u= u(t))

(B) k (e.g changes with the inlet velocity= const*A^1.5)

(C) e (e.g changes with k = const*B^2)

after calculating A then B and C.

My intention was to update the condition B&C based on condition A as the TIME varies like inlet velocity.

Do I still need to use DEFINE_PROFILE? and when the initialization function in GUI, do I need to include DEFINE_INNT in the C code?

P.S If it's possible I would like to send you an e-mail with my C code. my e-mail is
  Reply With Quote

Old   May 17, 2002, 08:11
Default Re: UDF Hooks
Posts: n/a
Yes, it's O.K you can do it.

The combination of DEFINE_PROFILE and DEFINE_INIT is good for your problem.

You have to specify the initial value of K and E in DEFINE_INIT function and specify the time-dependent values in DEFINE_PROFILE function

  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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 17:52.