# udf

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

 June 18, 2019, 21:34 udf #1 New Member   AKHIL KUMAR Join Date: Jan 2019 Posts: 13 Rep Power: 6 hi i am trying to compile a udf for defining concentration.but while compiling its showing invalid else without if .could anyone help me to find error if (FLUID_THREAD_P(t)) { Thread *ppt=pt[phase_domain_index]; begin_c_loop(c,t) { /*m_f=species mass fraction of dispersed phase at actual time*/ m_f=C_YI(c,ppt,0); C_UDMI(c,t,5)=m_f; if (C_VOF(c,ppt) !=0) m_f=c_YI(c,ppt,0); else m_f=0; C_UDMI(c,t,6)=m_f*1205/18; /*concentration kg/m3*/ m_f_c=m_f*1205/18; /*concentration kg/m3*/ C_UDMI(c,t,8)=m_f_c; /*concentration kg/m3*/ If (m_f_c>=C_sat) m_f_c=C_sat; else m_f_c=m_f_c; C_UDMI(c,t,9)=m_f_c;/*concentration kg/m3*/ If (C_VOF(c,ppt) !=0) C_liq=m_f_c;/*C_liq is the concentration of o2 in the liquid phase at actual time*/ else C_liq=0; C_UDMI(c,t,10)=C_liq; /*C_liq kg/m3 the value of c in liquid at t*/ C_UDMI(c,t,11)=C_liq/18;/*C_liq kmol/m3 the value of c in liquid at t*/ } end_c_loop (c,t) }

 Tags fluent - parallel, fluent - udf, fluent . cfx, fluent 14