|
[Sponsors] |
May 9, 2017, 06:57 |
UDF Wall Heat Generation Rate Profile error
|
#1 |
New Member
Join Date: Apr 2017
Posts: 7
Rep Power: 9 |
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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Natural convection in a closed domain STILL NEEDING help! | Yr0gErG | FLUENT | 4 | December 2, 2019 01:04 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |