View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002013 | OpenFOAM | Bug | public | 2016-03-03 16:07 | 2016-03-13 12:49 |
Reporter | pvatavuk | Assigned To | henry | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 14.04 |
Summary | 0002013: interFoam: Liquid inlet condition doesn't work in version 2.3 and newer versions | ||||
Description | In older versions of interFoam it was possible to create a liquid inlet surface by setting alpha=1 and a positive inlet velocity. This kind of condition doesn't work in the new versions because interFoam diverges. The new boundary condition variableHeightFlowRateInletVelocity sometimes is not appropriate to all problems, because we may need a fixed height inlet and it doesn’t work when initially there is no liquid in contact with the surface. | ||||
Steps To Reproduce | Please run interFoam in the attached file. | ||||
Additional Information | There were many posts in the CFD-online forum complaining about difficulties in creating inlet conditions for interFoam. If a new inlet boundary condition is created it will help many users. | ||||
Tags | No tags attached. | ||||
|
|
|
There is a VERY serious error in your case setup, you MUST use fixedFluxPressure for p_rgh at boundaries where the flux is fixed. There are many many tutorial cases provided which demonstrate the BCs for p_rgh, some very similar to your case which you can learn from. |
|
Dear Henry, Thank you very much for clarifying this question. I was able to run the case without problems changing the condition for p_rgh. I know the bug tracker is not supposed to work as forum, but in this case the bug wasn't in the code, it was located in the user, that is not understanding how to correctly apply a boundary condition. So I think it would be helpful if you explain in which situations we must use the fixedFluxPressure or the zeroGrandient condition for p_rgh. |
|
Use the fixedFluxPressure BC for p_rgh on patches for which the flux is fixed. If in doubt follow the examples provided in the tutorials. |
|
Looking at the tutorials I see an inconsistency: In the weirOverflow tutorial the zeroGradient condition is used for p_rgh in the inlet patch and it seems to be working without problems. |
|
It will also work without problems if you use fixedFluxPressure. It happens to work OK with zeroGradient because it is parallel to the direction of gravity. It is safer to always use fixedFluxPressure for patches on which the flux is fixed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-03-03 16:07 | pvatavuk | New Issue | |
2016-03-03 16:07 | pvatavuk | File Added: spillway_3p0.7z | |
2016-03-03 17:42 | henry | Note Added: 0005991 | |
2016-03-03 17:42 | henry | Status | new => resolved |
2016-03-03 17:42 | henry | Resolution | open => no change required |
2016-03-03 17:42 | henry | Assigned To | => henry |
2016-03-03 19:08 | pvatavuk | Note Added: 0005992 | |
2016-03-03 19:08 | pvatavuk | Status | resolved => feedback |
2016-03-03 19:08 | pvatavuk | Resolution | no change required => reopened |
2016-03-03 19:13 | henry | Note Added: 0005993 | |
2016-03-03 19:14 | henry | Status | feedback => closed |
2016-03-03 19:14 | henry | Resolution | reopened => fixed |
2016-03-09 15:57 | pvatavuk | Note Added: 0006027 | |
2016-03-09 15:57 | pvatavuk | Status | closed => feedback |
2016-03-09 15:57 | pvatavuk | Resolution | fixed => reopened |
2016-03-09 16:38 | henry | Note Added: 0006028 | |
2016-03-09 16:39 | henry | Status | feedback => closed |
2016-03-09 16:39 | henry | Resolution | reopened => no change required |