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

mass source term udf

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2013, 06: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, 02: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

Thread Tools
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 On
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 11:03
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
UDF Source Term Units? Brian FLUENT 1 October 24, 2005 09:15
help on UDF mass source shao1 FLUENT 2 July 11, 2002 20:36


All times are GMT -4. The time now is 08:32.