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

Check this UDF,please.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2006, 12:20
Default Check this UDF,please.
  #1
Josh
Guest
 
Posts: n/a
Can anyone check what's wrong with this UDF. When I interpreted it with FLUENT, a syntax error was reported in the third line.

#include "udf.h" #define QM 5e-6 DEFINE_SOURCE(charge_density,c,t,dS,eqn) { real charge_density; cell_t c; charge_density=C_R(c,t)*QM; return charge-density; }
  Reply With Quote

Old   February 2, 2006, 14:42
Default Re: Check this UDF,please.
  #2
Markus
Guest
 
Posts: n/a
Hi Josh

You don't have to declare cell_t c explicitly in your udf as it is already passed to DEFINE_SOURCE. Maybe this redefinition causes the problem. Max
  Reply With Quote

Old   February 2, 2006, 15:02
Default Thank you. *NM*
  #3
Josh
Guest
 
Posts: n/a
  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
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Cell check and Boundary check errors AB Siemens 4 October 28, 2004 14:04
3-D Mesh Check in Gambit..... SHR FLUENT 4 March 25, 2003 04:10


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