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

need help for udf about viscous resistance

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2006, 23:14
Default need help for udf about viscous resistance
  #1
lihx
Guest
 
Posts: n/a
Hi All,

I want to change the viscous resistance varying with time in the porous zone by udf. But when compute the case, the fluent warring that: chip-exec: Viscous_term: wrong return type: void udf function expected. Any one can tell me how I can write the unf for the viscous resistance correctly. Thanks in advance. The udf code I have written is given as follows.

/************************************************** ******************* UDF that specifies a custom mass-fraction weighted conductivity ************************************************** ********************/ #include "udf.h" DEFINE_PROPERTY(Viscous_term,c,t) { real ti; real C_PROPERTY; { ti = RP_Get_Real("flow-time"); C_PROPERTY= .......; } return C_PROPERTY; }

  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
Viscous resistance coefficients in porous medium fpingqian FLUENT 33 July 3, 2015 07:13
Inertial Resistance and Viscous Resistance Data ravitejakatragadda FLUENT 1 September 24, 2014 07:06
Viscous and Inertial Resistance in Porous Media aulu FLUENT 0 September 14, 2011 05:21
how to calculate the viscous and inertial resistance coefficients? omurakbayir FLUENT 1 November 22, 2010 23:36
adapt viscous resistance based on velocity / UDF Häwimeddel FLUENT 2 April 20, 2009 10:08


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