|
[Sponsors] |
July 27, 2013, 07:08 |
mass source term udf
|
#1 |
New Member
A.R.Zanganeh
Join Date: Jul 2013
Location: iran
Posts: 2
Rep Power: 0 |
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 |
|
July 31, 2013, 03:43 |
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 |
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 |
|
|
|
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 |