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

Brinkman term in UDF ?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dotapro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2013, 03:45
Unhappy Brinkman term in UDF ?
  #1
Member
 
Join Date: Oct 2013
Location: Malaysia
Posts: 39
Rep Power: 13
dotapro is on a distinguished road
Dear all,
I could like to add for
Brinkman term(second velocity derivative) in momentum sink since Darcy and Forchheimer term exist in Fluent porous setup. This Brinkman term is shown as below:



mu(dynamic viscosity of fluid)*∇^2 *V (velocity vector) /ep(porosity) = ((d^2*u/(dx)^2+d^2*u/(dy)^2+d^2*u/(dz)^2)+ (d^2*v/(dx)^2+d^2*v/(dy)^2+d^2*v/(dz)^2)+ (d^2*w/(dx)^2+d^2*w/(dy)^2+d^2*w/(dz)^2))*mu(dynamic viscosity of fluid)/ep(porosity)


Below is my coding for UDF:



#include"udf.h"
#define ep =0.93
DEFINE_SOURCE(xmom_source,c,t,dS,eqn)
{
real source;
real x;

x=C_MU_L(c,t)*(C_DUDX(c,t)+C_DUDY(c,t)+C_DUDZ(c,t) )/ep;
C_UDSI(c,t,0)=x;
source=C_UDSI_G(c,t);
dS[eqn]=0;


return source;
}


DEFINE_SOURCE(ymom_source,c,t,dS,eqn)
{
real source;
real y;

y=C_MU_L(c,t)*(C_DVDX(c,t)+C_DVDY(c,t)+C_DVDZ(c,t) )/ep;
C_UDSI(c,t,1)=y;
source=C_UDSI_G(c,t);
dS[eqn]=0;


return source;
}


DEFINE_SOURCE(zmom_source,c,t,dS,eqn)
{
real source;
real z;

z=C_MU_L(c,t)*(C_DWDX(c,t)+C_DWDY(c,t)+C_DWDZ(c,t) )/ep;
C_UDSI(c,t,2)=y;
source=C_UDSI_G(c,t);
dS[eqn]=0;


}
or

I need to use C_U_G(c,t) to replace C_DVDX(c,t)+C_DVDY(c,t)+C_DVDZ(c,t)?





Can anyone help me to verify my attempt ?


Thank you.
shahab1994 likes this.
dotapro is offline   Reply With Quote

Old   August 8, 2014, 02:41
Default Brinkman term in UDF
  #2
New Member
 
Prakash
Join Date: Dec 2013
Posts: 1
Rep Power: 0
prakashpvl is on a distinguished road
u got answer for it?
prakashpvl is offline   Reply With Quote

Old   August 8, 2014, 09:52
Default
  #3
Member
 
Join Date: Oct 2013
Location: Malaysia
Posts: 39
Rep Power: 13
dotapro is on a distinguished road
Dude, I still have not solve the problem.
dotapro 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
How to deal latent heat during phase change through source term udf dkb_bg Fluent UDF and Scheme Programming 4 April 12, 2018 21:26
How to write UDF to add a source term to the new transport equation ? 89566008 Fluent UDF and Scheme Programming 2 October 22, 2012 08:23
UDF sink term pichai FLUENT 0 October 20, 2010 02:07
UDF Source Term Christian FLUENT 4 August 1, 2009 06:53
Pulsating source term to select volumes thru UDF? BS FLUENT 0 February 7, 2008 01:42


All times are GMT -4. The time now is 14:11.