CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Phase dependant boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2014, 11:05
Default Phase dependant boundary condition
  #1
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
Hi all,

I’m running a transient two-phase flow simulation through a porous medium using the porousInterFoam solver.

Now, I would like to use a boundary condition, with the following properties:
It should be permeable for phase 1 (air), but impermeable for phase 2 (water). An effect like this is known form GoreTex membranes in outdoor clothes.

The porousInterFoam solver calculates the volume fractions of the two phases for every cell. So, as soon this volume fraction passes a value of 0.5 in a cell which is in contact to the boundary, the condition should switch.

For the permeable (not-wall) case I would like to implement a constant pressure condition.

The question is:
Is there a boundary condition capable to do this by default? And if not: Which is the closest existing boundary condition that I could use a basement for programming?

Thank you in advance for any hints and advices to improve my question!

Peter
John Degenkolb is offline   Reply With Quote

Old   May 13, 2014, 09:22
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
i dont know such BC, but a general advice can be use of groovyBC from third party packahe swak4Foam
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   June 3, 2014, 11:14
Default groovyBC for switchable BC based on phase fraction
  #3
New Member
 
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12
John Degenkolb is on a distinguished road
Ok, thanks for the reply.

So here I am trying to use groovy BC for the above mentioned problem.
In my 0/U file I've got:
Code:
...
upperWall
{
type groovyBC;
value Expression "0";
variables "alphaMatrix{upperWall}=alpha1;"
}
...
(Yes, I'm trying to access values on the same, not on a different patch. I hope it works...)

The error I get is:
Code:
Parser Error for driver PatchValueExpressionDriver at "1.1-5": "field alpha1 not existing or of wrong type"
"alpha1"
I also tried with
alphaMatrix{upperWall}=alpha,
alphaMatrix{upperWall}=alpha.water,
alphaMatrix{upperWall}=alpha.matrix,
alphaMatrix{upperWall}=alphawater.
However, it doesn't seem to find the alpha scalarfield.

The input file specifying the initial volume fractions is called alphamatrix:
Code:
FoamFile
{
   version 2.0;
    format ascii;
    class volScalarField;
    object alpha.water;
}
Is it possible to access it in groovyBC?

Thank you in advance!
Peter
John Degenkolb 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
Boundary condition at phase interface skp OpenFOAM Programming & Development 5 February 12, 2017 20:51
conjugate boundary condition Daniel_Khazaei OpenFOAM Programming & Development 0 December 31, 2013 13:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
No-slip condition for non-resolved boundary layer in open channel banks Lupocci Main CFD Forum 1 January 17, 2013 03:11
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56


All times are GMT -4. The time now is 10:22.