CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

add source term to transport equation

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

LinkBack Thread Tools Display Modes
Old   September 10, 2013, 03:09
Question add source term to transport equation
New Member
Jack Chung
Join Date: Mar 2013
Posts: 3
Rep Power: 6
m003020002 is on a distinguished road
Hello, every body

My geometry is a 2D suqare enclosure and the fluid fill of inside is Al2O3-Water.

This case is a natural convection and consider the transport equation include the brownian motion and thermophoresis mechanism.
Because i don't have enough experiences to validation the nanoparticle rayleigh number and nusselt number.
should i click the multiphase or discrete phase in models ?

Can any one can help me to solve it. thanks

the transport equation source is u*(Partial phi/Partial x) + v*(Partial phi/Partial y) =[(Partial/Partial x)*(DB*Partial phi/Partial x)+(Partial/Partial y)*(DB*Partial phi/Partial y]+[(Partial/Partial x)*(DT*Partial T/Partial x)+(Partial/Partial y)*(DT*Partial T/Partial y]

DB is brownian motion&DT is thermophoresis coefficient

by the way this is my code(the transport equation source term)困惑:

#include "udf.h"

real x[ND_ND];
real source;
real D_T /* thermophoresis coefficient */
real S_T; /* thermophoresis parameter */
real mu_f; /* water of dynamic viscosity Unit: kg/m-s */
real rho_f; /* water of density Unit: kg/m^3 */
real T; /* Temperatur of cold wall Unit: kelvin scale */
real phi; /* nanoparticle volume fraction */

S_T = 0.13; mu_f = 0.00063544; rho_f = 991.8; T = 313; phi = 0.01;
C_T_G(c,t)[1]; /* returns the x-component of the cell temperature gradient vector */
D_T = S_T*(mu_f/(rho_f*T))*phi;

C_T_G(c,t,i)= c_t_g(c,t,i)/dx +

ds[equ] = D_T*C_UDSI(c,t,0);

return source;
m003020002 is offline   Reply With Quote


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
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
UDF for source term in momentum equation Enrico FLUENT 9 May 30, 2014 11:34
how to troduce a source term in ICOFOAM solver's equation sawyer86 OpenFOAM Running, Solving & CFD 0 July 20, 2012 11:15
Source term energy equation for reactive flows DaIN Main CFD Forum 0 October 6, 2011 15:11
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43

All times are GMT -4. The time now is 20:36.