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

udf please

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2006, 05:02
Default udf please
  #1
vijay
Guest
 
Posts: n/a
Hi,

Can anybody tell me how to write a udf for pressure changing with time? It is an unsteady formulation problem.
  Reply With Quote

Old   April 7, 2006, 06:49
Default Re: udf please
  #2
Dan
Guest
 
Posts: n/a
If it's a basic function of t at an inlet you could use something like:

#include "udf.h"

DEFINE_PROFILE(inlet_x1_pressure, thread, index) { face_t f; real t = RP_Get_Real("flow-time");

begin_f_loop (f,thread) {

F_PROFILE(f,thread,index) = (some function of t) }
  Reply With Quote

Old   April 7, 2006, 06:57
Default Re: udf please
  #3
vijay
Guest
 
Posts: n/a
Hi,

Could you please elaborate your explanation. I could not understand.
  Reply With Quote

Old   April 7, 2006, 08:25
Default Re: udf please
  #4
Dan
Guest
 
Posts: n/a
It depends on how your inlet varies with time, does it obey an algebraic function or have you just got values at different points in time?
  Reply With Quote

Old   April 7, 2006, 23:48
Default Re: udf please
  #5
vijay
Guest
 
Posts: n/a
Hi,

I found the problem and I could rectify it. Thanks for ur help.

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


All times are GMT -4. The time now is 19:30.