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

help! about mass-flow-rate boundary-condition UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 25, 2008, 04:09
Default help! about mass-flow-rate boundary-condition UDF
  #1
andy
Guest
 
Posts: n/a
Hi everyone: I am trying to solve a problem using UDF(about mass-flow-rate boundary-condition ). My short code is as follows: #include "udf.h" DEFINE_PROFILE(unsteady_massflow,thread,position) { face_t f; begin_f_loop(f,thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f,thread,position) =-0.00007*t*t*t*t*t*t+0.00315*t*t*t*t*t-0.05087*t*t*t*t+0.39321*t*t*t-1.66906*t*t+4.7406*t-0.70907; } end_f_loop(f,thread) } The compile was wrong.Can anyone please help me with this program or give me some advice? Thank you so much. I am nearly exhausted by this problem!

  Reply With Quote

Reply

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
How can apply mass flow rate boundary condition? Sima Phoenics 1 December 1, 2007 19:55
HOW TO GIVE FLOW RATE IN OUTLET BOUNDARY CONDITION venky FLUENT 1 April 5, 2006 04:09
Constant Volumetric Flow Rate Boundary Condition Hadley Main CFD Forum 0 October 20, 2005 23:13
Unsteady mass-flow rate boundary condition Leon FLUENT 0 October 20, 2004 06:29
Constant mass flow rate / choking outlet bounardy condition Min Zhu Main CFD Forum 1 September 29, 1998 15:33


All times are GMT -4. The time now is 22:13.