|
[Sponsors] |
November 18, 2017, 08:33 |
define source term
|
#1 |
New Member
behzad
Join Date: May 2017
Posts: 5
Rep Power: 9 |
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 |
|
November 18, 2017, 08:43 |
eqn of permeability
|
#2 |
New Member
behzad
Join Date: May 2017
Posts: 5
Rep Power: 9 |
the equation of permeability is in attachment
|
|
June 25, 2018, 12:24 |
|
#3 |
Member
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09: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 19:13 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |