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

UDF Wall Heat Generation Rate Profile error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2017, 05:57
Default UDF Wall Heat Generation Rate Profile error
  #1
NPs
New Member
 
Join Date: Apr 2017
Posts: 7
Rep Power: 8
NPs is on a distinguished road
Hi i generate a Wall Heat Generation Rate Profile by this UDF

#include "udf.h"

#define mu_0 = 1,25*10^(-6);
#define chi_2 = 1,25 ;
#define frequency = 344000 ;
#define magnetic_field_quadrato = 21000 ;
#define mass_NPs = 1,5*10^(-3) ;
#define cp_NPs = 0,67 ;
#define mass_water = 498.5*10^(-3) ;
#define cp_water = 4.18 ;

DEFINE_PROFILE(wallheatgenerate,thread,i)
{
face_t f;

real t = CURRENT_TIME ;
17 real delta_T = ((mu_0 * 3,14 * chi_2 * frequency * magnetic_field_quadrato)/((mass_NPs * cp_NPs)+(cp_water * mass_water))) * t;
real source = ((mass_NPs)*(cp_NPs))+(cp_water)*(mass_water))* delta_T;
face_t f;


begin_f_loop(f,thread)
F_PROFILE(f,thread,i) = source;
end_f_loop(f,thread)
}
I got this error : "line 17 parse error" "line 17: invalid type for pointer dereference: int.
I can't understand why. Somebody can help me please?
NPs is offline   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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 12:59.