# Brinkman term in UDF ?

 Register Blogs Members List Search Today's Posts Mark Forums Read December 4, 2013, 02:45 Brinkman term in UDF ? #1 Member   Join Date: Oct 2013 Location: Malaysia Posts: 39 Rep Power: 10 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.   August 8, 2014, 01:41 Brinkman term in UDF #2 New Member   Prakash Join Date: Dec 2013 Posts: 1 Rep Power: 0 u got answer for it?   August 8, 2014, 08:52 #3 Member   Join Date: Oct 2013 Location: Malaysia Posts: 39 Rep Power: 10 Dude, I still have not solve the problem.  Thread Tools Search this Thread Show Printable Version Email this Page Search this Thread: Advanced Search Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules Similar Threads Thread Thread Starter Forum Replies Last Post dkb_bg Fluent UDF and Scheme Programming 4 April 12, 2018 20:26 89566008 Fluent UDF and Scheme Programming 2 October 22, 2012 07:23 pichai FLUENT 0 October 20, 2010 01:07 Christian FLUENT 4 August 1, 2009 05:53 BS FLUENT 0 February 7, 2008 00:42

All times are GMT -4. The time now is 21:28. 