CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

semipermeable interface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2017, 09:20
Default semipermeable interface
  #1
New Member
 
Torben
Join Date: Dec 2014
Posts: 2
Rep Power: 0
torhans is on a distinguished road
Hi

I have essentially a pipe with a controlled composition of 3 gases in one end and in the other end I have a semipermeable membrane, permeable to one of the gases (O2). Everything is laminar and there is no internal reactions. I want to control the O2 concentration or O2 flow in the semipermeable end.

I thought I could use reactionFoam with chemistry turned off and then using totalFlowRateAdvectiveDiffusive boundary. But it turns out that it can only be used with les problems.

What is my best approach.

Thanks
Torben
torhans is offline   Reply With Quote

Old   January 27, 2017, 15:16
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 83
Rep Power: 13
Henning86 is on a distinguished road
Hi


I think you have to modify the solver and the solver needs to be compressible. set phi and mueff zero at the membrane in yeqn.h. This would result in an O2 concentration higher than 1. So you have to modify phi in pEqn.h and UEqn.h aswell. If the membrane is a boundary a new boundary condition should be enough.

MassfluxOverall = Sum (massfluxSpezies)

And the O2 massflux is zero.

I hope i understand the problem correctly could you provider a sketch?

Best regards,

Henning

Sry written with my phone
Henning86 is offline   Reply With Quote

Old   February 5, 2017, 18:29
Default
  #3
New Member
 
Torben
Join Date: Dec 2014
Posts: 2
Rep Power: 0
torhans is on a distinguished road
Thanks Henning

I expected that writing a new boundary condition was what I had to do. So I'm learning how to do that.

But why do you think that the solver must be compressible?

In the meantime I have attached a small (simplified) sketch of the problem. I guess massflux should be zero for all other species than O2.

Regards
Torben
Attached Images
File Type: png diffusion channel.png (19.4 KB, 15 views)
torhans is offline   Reply With Quote

Old   February 9, 2017, 08:29
Default
  #4
Member
 
Join Date: Nov 2012
Posts: 83
Rep Power: 13
Henning86 is on a distinguished road
Hi,


i understood that you only have a channel with a predefined massflux. In the scenario with a gas reservoir a incompressible solver should be sufficient.

with the mass fluxes you are correct.

So you need a boundary condition for U.

O2 should be zeroGradient
The other species should be fixedValue 0

Best Regards

Henning
Henning86 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 09:17.