|
[Sponsors] |
December 3, 2014, 07:16 |
The initial condition for alpha
|
#1 |
Member
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 12 |
Dear Foamers,
Now I am trying to simulate waves using OpenFOAM. And I have one question about the initial condition for alpha(the volume fraction) In the 0 folder, the alpha is set as follows, dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { //- Set patchGroups for constraint patches #include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes" movingWall { type zeroGradient; } rightWall { type zeroGradient; } bottom { type zeroGradient; } atmosphere { type inletOutlet; inletValue $internalField; value $internalField; } defaultFaces { type empty; } } // ************************************************** *********************** // The atmosphere boundary is set as inletOulet. And I look for the user guide and find that "inletOutlet" Swithes U and p between fixedValue and zeroGradient depending on direction of U . But I still don't quite understand the meaning? can anyone help me??? |
|
December 3, 2014, 07:46 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi Xiantao,
inletOutlet is zero gradient if flow is outwards to the domain, and fixed value (equal to inletValue) otherwise. This means that if inletValue = 0, then water and air are able to flow outside your domain through the atmosphere, but if pressure requires an entering flux, then it will only be air (alpha = 0). Best, Pablo |
|
December 4, 2014, 01:40 |
|
#3 |
Member
Xiantao Zhang
Join Date: Nov 2014
Posts: 31
Rep Power: 12 |
Hi, Pablo
Since there are two types of data(inletValue and value) to specify for the "inletOutlet" boundary type. You mean, if inletValue=0, then water and air are able to flow out the domain through the atmosphere boundary. inletValue corresponds to "fixedValue". How about the second type of data "value"?? does it correspond to "zeroGradient"?? Hope to receive your reply. Best, Xiantao |
|
December 4, 2014, 03:33 |
|
#4 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi Xiantao,
"value" is not used by OpenFOAM, it is just needed to load the case in ParaView. Sometimes when you don't specify the "value" and ParaView does not know the boundary condition it fails to load the field or crashes. The very first time step the correct "value" is calculated by OpenFOAM. Best, Pablo |
|
Tags |
alpha, initial condition, inletoulet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 10:48 |
conjugate heat transfer in OpenFOAM | skuznet | OpenFOAM Running, Solving & CFD | 99 | March 16, 2017 06:07 |
log file | imani | OpenFOAM Running, Solving & CFD | 0 | July 24, 2014 03:04 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 07:37 |
Unknown error | sivakumar | OpenFOAM Pre-Processing | 9 | September 9, 2008 13:53 |