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

mass source term udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2013, 07:08
Post mass source term udf
  #1
New Member
 
A.R.Zanganeh
Join Date: Jul 2013
Location: iran
Posts: 2
Rep Power: 0
A.R.Zanganeh is on a distinguished road
Hi!

I want to write an udf, that defines a mass source term for a mixture model in porous zone.
how to write that udf??
do you have any written program like this???

I appreciate your help and suggestions.



__________________
With regards,
A.R.Zanganeh
A.R.Zanganeh is offline   Reply With Quote

Old   July 31, 2013, 03:43
Default udf of mass source for convection diffusion equation
  #2
New Member
 
A.R.Zanganeh
Join Date: Jul 2013
Location: iran
Posts: 2
Rep Power: 0
A.R.Zanganeh is on a distinguished road
hi all
how can i add source term to convection diffusion equation?
its possible or not?
source= constant*velocity * concentration

#include "udf.h"
#define con 2000
DEFINE_SOURCE(mass_source,cell,thread,dS,eqn)
{
real source;
source=-con*C_U(cell,thread)*C_YI(cell,thread,3);
dS[eqn]=-con*C_U(cell,thread);
return source;
}
can i add source term to convection diffusion equation by above udf?

I appreciate your help and suggestions.



__________________
With regards,
A.R.Zanganeh
A.R.Zanganeh is offline   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
Temperature-dependent source term udf ashkan_1984 Fluent UDF and Scheme Programming 12 May 16, 2013 12:03
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
UDF Source Term Units? Brian FLUENT 1 October 24, 2005 10:15
help on UDF mass source shao1 FLUENT 2 July 11, 2002 21:36


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