CFD Online Logo CFD Online URL
Home > Forums > FLUENT

need help for udf about viscous resistance

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

LinkBack Thread Tools Display Modes
Old   March 12, 2006, 23:14
Default need help for udf about viscous resistance
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


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 42 March 8, 2017 01:27
Inertial Resistance and Viscous Resistance Data ravitejakatragadda FLUENT 2 July 12, 2016 03:36
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 04:11.