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

define source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2017, 07:33
Default define source term
  #1
New Member
 
behzad
Join Date: May 2017
Posts: 5
Rep Power: 9
behzzad93 is on a distinguished road
hi everyone

i have a serious problem in fluent
what is the udf for permeate flux?...i have to modeling a tube that have an inlet and outlet, but the walls of tube have permeability. indeed i want to model a membrane that fluid enters the inlet and a little bit of fluid passes through the wall(i know the equation for permeability) and rejected fluid is exited from the outlet. so can anyone tell me how can i define a udf for this equation please?..i realized i have to use sink & source method for wall boundary condition, also i have to use "define_source" macro. but i didn't see examples for this section.
i don't know how to write udf for this boundary!!.

thank you
behzzad93 is offline   Reply With Quote

Old   November 18, 2017, 07:43
Default eqn of permeability
  #2
New Member
 
behzad
Join Date: May 2017
Posts: 5
Rep Power: 9
behzzad93 is on a distinguished road
the equation of permeability is in attachment
Attached Images
File Type: png 1111.PNG (112.3 KB, 69 views)
behzzad93 is offline   Reply With Quote

Old   June 25, 2018, 11:24
Default
  #3
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
Hey behzzad,



In case you are still figuring the solution, here is what I am doing.


I have defined the membrane as a velocity inlet and written a UDF and used DEFINE_PROFILE to specify the flux through the membrane (-ve in sign as it exits the boundary). The secondary phase could be set as zero to not allow it to flow through.



If you restrict the flow through the boundary, it begins to act a permeable surface. by using DEFINE_SOURCE you can account for the material that leaves the system and probably enters the other phase. for a UDS you would have to define your own else for species it is accounted for in the mass transfer definition.
zobekenobe 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 08:47.