View Issue Details

IDProjectCategoryView StatusLast Update
0002013OpenFOAMBugpublic2016-03-13 12:49
Reporterpvatavuk Assigned Tohenry  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0002013: interFoam: Liquid inlet condition doesn't work in version 2.3 and newer versions
DescriptionIn 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 ReproducePlease run interFoam in the attached file.
Additional InformationThere 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.
TagsNo tags attached.

Activities

pvatavuk

2016-03-03 16:07

reporter  

spillway_3p0.7z (229,611 bytes)

henry

2016-03-03 17:42

manager   ~0005991

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.

pvatavuk

2016-03-03 19:08

reporter   ~0005992

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.

henry

2016-03-03 19:13

manager   ~0005993

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.

pvatavuk

2016-03-09 15:57

reporter   ~0006027

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.

henry

2016-03-09 16:38

manager   ~0006028

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.

Issue History

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