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

line 91 parse error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2007, 01:03
Default line 91 parse error
  #1
brusly
Guest
 
Posts: n/a
hi all

when i interpreting the udf it shows like this Error: D:\1.c: line 91: parse error.

plz help me

my udf is #include "udf.h" #include "sg_mphase.h" #define T_SAT 373 #define LAT_HT 1.e3

DEFINE_SOURCE(liq_src, cell, pri_th, dS, eqn) {

Thread *mix_th, *sec_th; real m_dot_l;

mix_th = THREAD_SUPER_THREAD(pri_th); sec_th = THREAD_SUB_THREAD(mix_th, 1);

if(C_T(cell, mix_th)>=T_SAT){

m_dot_l = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*

fabs(C_T(cell, pri_th) - T_SAT)/T_SAT;

dS[eqn] = -0.1*C_R(cell, pri_th)*

fabs(C_T(cell, pri_th) - T_SAT)/T_SAT;

} else {

m_dot_l = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*

fabs(T_SAT-C_T(cell,mix_th))/T_SAT;

dS[eqn] = 0.;

}

if(T_SAT>=(C_T(cell, mix_th)))

{

m_dot_l=m_dot_l*-1;

} return m_dot_l;

}

DEFINE_SOURCE(vap_src, cell, sec_th, dS, eqn)

{

Thread * mix_th, *pri_th; real m_dot_v;

mix_th = THREAD_SUPER_THREAD(sec_th); pri_th = THREAD_SUB_THREAD(mix_th, 0);

if(C_T(cell, mix_th)>=T_SAT){

m_dot_v = 0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*

fabs(C_T(cell, mix_th) - T_SAT)/T_SAT;

dS[eqn] = 0.;

} else {

m_dot_v = -0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*

fabs(T_SAT-C_T(cell,mix_th))/T_SAT;

dS[eqn] = -0.1*C_R(cell, sec_th)*

fabs(C_T(cell, sec_th) - T_SAT)/T_SAT;

}

if(T_SAT>=(C_T(cell, mix_th)))

{

m_dot_v=m_dot_v*-1;

} return m_dot_v;

}

DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn) { Thread *pri_th, *sec_th; real m_dot; pri_th = THREAD_SUB_THREAD(mix_th, 0); sec_th = THREAD_SUB_THREAD(mix_th, 1);

if(C_T(cell, mix_th)>=T_SAT){

m_dot = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*

fabs(C_T(cell, pri_th) - T_SAT)/T_SAT;

dS[eqn] = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)/T_SAT;

}

else {

m_dot = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*

fabs(T_SAT-C_T(cell,mix_th))/T_SAT;

dS[eqn] = -0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)/T_SAT;}

if(T_SAT>=(C_T(cell, mix_th)))

{

LAT_HT*m_dot=LAT_HT*m_dot*-1;

} return LAT_HT*m_dot; }

advance thanks

  Reply With Quote

Old   January 29, 2007, 05:54
Default Re: line 91 parse error
  #2
brusly
Guest
 
Posts: n/a
sorry its running
  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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 07:12
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 05:24.