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

Help! -User Difined Functions----Drag Coefficient

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 13, 2004, 12:10
Default Help! -User Difined Functions----Drag Coefficient
  #1
Colin
Guest
 
Posts: n/a
Hi,

I am using Eulerian Model for multiphase flow. In the model, the drag coefficient is 1.0. And I defined the UDF of Drag coefficient as follows:

#include "udf.h"

DEFINE_EXCHANGE_PROPERTY(drag, cell, x_thread, s, f) { Cd = 1.0; return Cd; }

When the UDF is interpreted, Fluent says "Cd" is an undeclared variable. Even if I declare Cd is a real later, Fluent still showed me the same message.

Could someone help me?

Thank you.
  Reply With Quote

 


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
drag coefficient computation on a porous jump??? Fabrice FLUENT 4 June 5, 2017 05:30
Drag Coefficient Verification around Cylinder MFerris CFX 44 May 11, 2015 18:27
drag coefficient & drag force abhishek.mnit FLUENT 0 April 29, 2009 23:48
Context of user fortran functions Bloshchitsyn Vladimir CFX 0 October 17, 2007 06:28
drag coefficient with k-eps model Mark Main CFD Forum 8 April 19, 2004 09:55


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