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

PBM frequency UDF error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2014, 14:42
Default PBM frequency UDF error
  #1
New Member
 
Balraju
Join Date: Feb 2011
Location: Hyderabad,India
Posts: 11
Rep Power: 15
raju.vadlakonda is on a distinguished road
Hiiii,


Iam facing UDF error in PBM method break up frequency calculation.
Please look into this..


1
/************************************************** ********************

2
UDF that computes the particle breakage frequency
3
************************************************** *********************/
4
#include "udf.h"
5
#include "sg_pb.h"
6
#include "sg_mphase.h"
7
#define N 3
8
DEFINE_PB_BREAK_UP_RATE_FREQ (break_up_freq, cell, thread, d_1)
9
{
10
int i;
11
real epsi,alpha_gas,ni,lamda,k,FQ[N],ulamda,nlamda,nd[N],d[N];
12
real CB = 0.923;
13
nd[N] =100; //Number of bubbles//
14
Thread *tm = THREAD_SUPER_THREAD(thread); //*passed thread is phase*//
15
k=C_K(cell,tm);
16
epsi=C_D(cell,tm);
17
lamda=(pow(k,3/2))/epsi;
18
alpha_gas = C_VOF(cell, thread);
19
ulamda=(pow(2.046,0.5))*(pow((epsi*lamda),1.0/3.0));
20
nlamda =0.822*((1-alpha_gas)/(pow(lamda,4)));
21
FQ[N] = (22/28)*d[i]*d[i]*ulamda*nlamda*nd[N];
22
return FQ[N];
23
}




I am getting following errors while compiling UDF


..\..\src\break_up_freq.c(14) : error C2275: 'Thread' : illegal use of this type as an expression
c:\program files\ansys inc\v145\fluent\fluent14.5.0\src\mem.h(802) : see declaration of 'Thread'
..\..\src\break_up_freq.c(14) : error C2065: 'tm' : undeclared identifier
..\..\src\break_up_freq.c(14) : error C2143: syntax error : missing ';' before '/'
..\..\src\break_up_freq.c(16) : error C2065: 'tm' : undeclared identifier
..\..\src\break_up_freq.c(16) : error C2223: left of '->storage' must point to struct/union


Please help me in this regard.
Thank you in advance.

Regards,
Raju
raju.vadlakonda is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 01:10
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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