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

UDF for Permeability in Porous Media

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Umesh
  • 1 Post By umesh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2004, 22:36
Default UDF for Permeability in Porous Media
  #1
solomon
Guest
 
Posts: n/a
What is the udf for permeability or viscous resistance in Fluent 6.1?
  Reply With Quote

Old   January 18, 2004, 23:41
Default Re: UDF for Permeability in Porous Media
  #2
Umesh
Guest
 
Posts: n/a
#include "udf.h" #include "sg.h"

#define R1soil 8e13 /* Resistances */ #define R2soil 2e13

/* Define Resistences */

DEFINE_PROFILE(one_res, thread, np) { cell_t c; real x[ND_ND]; real y;

begin_c_loop (c,thread)

{ C_CENTROID(x,c,thread);

y =x[1];

if ((y<h1 && y>=h2) || (y<h3 && y>=h4) || (y<h5 && y>=h6 ) )

F_PROFILE(c,thread,np) = R1soil; else if ((y<h2 && y>=h3) || (y<h4 && y>=h5) || (y<h6))

F_PROFILE(c,thread,np) = R1graval;

} end_c_loop (c,thread) }
rron54 likes this.
  Reply With Quote

Old   January 20, 2004, 02:53
Default Re: UDF for Permeability in Porous Media
  #3
solomon
Guest
 
Posts: n/a
What is the h's (h2,h3,h4,h5,h6) stand for?

Thank you
  Reply With Quote

Old   January 20, 2004, 05:24
Default Re: UDF for Permeability in Porous Media
  #4
Umesh
Guest
 
Posts: n/a
THis is UDF for a Packed column.. h1..h2.are column heights..i.e. distance along height...the udf specifies resistances for two layers of packings..

i had used it successfully

hope this helps.. by -Umesh
  Reply With Quote

Old   January 20, 2004, 15:49
Default Re: UDF for Permeability in Porous Media
  #5
co2
Guest
 
Posts: n/a
is there some syntax error in the last 2-3 lines of the code given by Umesh?
  Reply With Quote

Old   January 20, 2004, 23:38
Default Re: UDF for Permeability in Porous Media
  #6
umesh
Guest
 
Posts: n/a
hi the code is correct... but some symbols were not displyed... just refer to this one

--The Code-----------

#include "udf.h"

#include "sg.h"

#define R1soil 8e13 /* Resistances */

#define R2soil 2e13

#define h1 1.8

#define h2 0.3

/* Define Resistences */

DEFINE_PROFILE(one_res, thread, np) { cell_t c;

real x[ND_ND];

real y;

begin_c_loop (c,thread)

{ C_CENTROID(x,c,thread);

y =x[1];

if (y less than h1 and and y greater than= h2)

F_PROFILE(c,thread,np) = R1soil;

else if (y less than h2)

F_PROFILE(c,thread,np) = R1graval;

} end_c_loop (c,thread) }

rron54 likes this.
  Reply With Quote

Old   August 9, 2012, 13:05
Default
  #7
New Member
 
kaci fodil
Join Date: Aug 2012
Posts: 8
Rep Power: 14
reynolds039 is on a distinguished road
hello
what is the viscous resistance in multiphase flow throw a porous medium for each phase
(oil-water) , give the udf for each of them please
reynolds039 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
Porous media setup issues in Fluent Bernard Van FLUENT 29 January 26, 2017 05:09
How to model granular flow through porous media Axius FLUENT 2 August 7, 2014 11:34
Porous Media UDF Vamsee FLUENT 0 February 26, 2009 02:01
Porous Media UDF Trident FLUENT 0 July 9, 2008 01:37
porous media: Fluent or Star-CD? Igor Main CFD Forum 0 December 5, 2002 16:16


All times are GMT -4. The time now is 00:26.