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

need help for udf about viscous resistance

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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
Viscous resistance coefficients in porous medium fpingqian FLUENT 50 June 26, 2019 02:55
Inertial Resistance and Viscous Resistance Data ravitejakatragadda FLUENT 5 May 10, 2018 05:16
Viscous and Inertial Resistance in Porous Media aulu FLUENT 0 September 14, 2011 06: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 11:08


All times are GMT -4. The time now is 15:45.