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

diffusivity

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 19, 2016, 12:10
Default diffusivity
  #1
New Member
 
Join Date: Jul 2016
Posts: 13
Rep Power: 9
Ribes is on a distinguished road
HI!
I wrote this code to define a different diffusivity for the air in the porous media and not porous media:
#include "udf.h"
DEFINE_DIFFUSIVITY(diffusion_coefficient,c,t,i)
if (C_POR(c,t)==1)
Diff=2.31*e5*101325/C_P(c,t)*pow(C_T(c,t)/273.15,1.81)
else
Diff=2.31*e5*101325/C_P(c,t)*pow(C_T(c,t)/273.15,1.81)*pow(C_POR(c,t),2.24)
return Diff

when I compile it gives parse error on line 3....is it because of the C_POR macro? I founded this notation in the forums..thanks for any help
Ribes is offline   Reply With Quote

 


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
Kinematic Diffusivity - Problem with additional variable clau90 CFX 3 May 14, 2014 09:54
PEM modeling UDS diffusivity in mixture gemini FLUENT 6 August 7, 2012 07:37
What is UDS diffusivity of a self-defined material? aleisia FLUENT 0 March 5, 2011 22:08
Species Diffusivity in PEMFC Simulation circle2000 FLUENT 0 September 20, 2004 22:12
Species diffusivity zhou1 FLUENT 0 November 4, 2003 17:23


All times are GMT -4. The time now is 16:35.