|
[Sponsors] |
May 12, 2014, 11:05 |
Phase dependant boundary condition
|
#1 |
New Member
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12 |
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 |
|
May 13, 2014, 09:22 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
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) |
|
June 3, 2014, 11:14 |
groovyBC for switchable BC based on phase fraction
|
#3 |
New Member
Peter
Join Date: Apr 2014
Posts: 21
Rep Power: 12 |
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;" } ... The error I get is: Code:
Parser Error for driver PatchValueExpressionDriver at "1.1-5": "field alpha1 not existing or of wrong type" "alpha1" 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; } Thank you in advance! Peter |
|
|
|
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 |