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

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:56
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
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 07:54.