|
[Sponsors] |
buoyantBoussinesqSimpleFoam - continuity error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2012, 15:37 |
buoyantBoussinesqSimpleFoam - continuity error
|
#1 |
Member
Vitor Vasconcelos
Join Date: Jan 2012
Posts: 33
Rep Power: 14 |
Hello all,
I am new to OpenFoam and I'm trying to solve a simple (at last I think it is...) case in which I have a heated rod inside a pipe. For natural convection it seems ok. When I try to start a flow (inlet and outlet flows) I get a "continuity error message". I based the configuration files on "hotRoom" OpenFoam's tutorial case. The boundary conditions are: p: inlet -> zeroGradient outlet -> FixedValue uniform 0; insideWall -> zeroGradient; outsideWall -> zeroGradient; U: inlet -> FixedValue (0 1 0) outlet -> ZeroGradient (or calculated $internalField; insideWall -> FixedValue (0 0 0); outsideWall -> FixedValue (0 0 0); T: inlet -> FixedValue 300; outlet -> zeroGradient (or calculated $internalField); insideWall -> FixedValue 1000; outsideWall -> FixedValue 300; So, any suggestions? Thanks in advance. Vitor |
|
January 4, 2012, 05:00 |
|
#2 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
for the outlet velocity condition try pressureInletOutletVelocity with value (0 0 0).
__________________
~roman |
||
January 4, 2012, 10:02 |
|
#3 |
Member
andres
Join Date: Jul 2011
Posts: 31
Rep Power: 15 |
I always use this bc in p_rgh
wall { type buoyantPressure; rho rhok; value uniform 0; } outlet { type zeroGradient; } inlet { type fixedValue; value uniform 0; } |
|
January 12, 2012, 10:14 |
|
#4 |
Member
Vitor Vasconcelos
Join Date: Jan 2012
Posts: 33
Rep Power: 14 |
Thanks guys. I got a better result, though not perfect. But with this buoyantPressure BC I'll try to tune my simulation.
|
|
September 21, 2012, 05:55 |
Divergence problem solved by Greel's suggestion
|
#5 |
New Member
Ameya Durve
Join Date: Jun 2009
Location: Mumbai
Posts: 10
Rep Power: 17 |
@ Greel:
Boundary conditions for p_rgh suggested by you worked for my simulation. I was having a divergence problem for buoyantBoussinesqSimpleFoam that got solved with those boundary conditions. How good the results are, remains to be seen. Thanks a lot Ameya |
|
April 29, 2015, 17:25 |
|
#6 |
Senior Member
Join Date: May 2011
Posts: 231
Rep Power: 16 |
How was the results?
I have similar doubts about p and p_rgh boundary conditions in buoyantBoussinesqSimpleFoam solver applied in simple pipe simulation... thanks! |
|
June 13, 2022, 11:48 |
|
#7 |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6 |
Dear Foamers,
It’s been a while that I’ve had the same problem in setting the correct BC for similar problems. Here is the review of how I solved this issue: Problem: steady state open channel flow simulation. In this scenario, normally the simpleFoam is employed. The BCs are given by: BCs: inlet, outlet, wall, topWall U: inlet { type fixedValue; value uniform (0 0.1589 0); } outlet { type zeroGradient; } wall { type noSlip; } atmosphere { type slip; } p: atmosphere { type zeroGradient; } inlet { type zeroGradient; } outlet { type fixedValue; value uniform 0; } wall { type fixedFluxPressure; //remember that we cannot use Drichlet and Neuman BC at the same time value uniform 0; } As one can see, selecting fixedValue BC for the outlet pressure is physically incorrect even though one can get result. To resolve this issue, I decided to use the hydrostatic pressure as the outlet BC for the pressure. To this end, one need to either define gravity in the governing equation or else use a steady state solver that has gravity in the equations. I went for the second approach. The only available solver for incompressible fluids that has this feature is buoyantBoussinesqSimpleFoam. When this solver is selected, the BCs needs to be defined for the U, p, and p_rgh. Generally, p_rgh=p-rho*g*h. I have searched a lot and finally could find the correct way of setting BC for the foregoing parameters. U: inlet { type fixedValue; value uniform (0 0.1589 0); } outlet { type pressureInletOutletVelocity; value uniform (0 0 0); inletValue uniform (0 0 0); } wall { type noSlip; } atmosphere { type slip; } P: atmosphere { type zeroGradient; } inlet { type zeroGradient; } outlet { type calculated; value $internalField; } wall { type zeroGradient; } P_rgh inlet { type fixedFluxPressure; } outlet { type fixedValue; value uniform 0; } wall { type fixedFluxPressure; } atmosphere { type fixedFluxPressure; } let me know if it is not clear. Keep Foaming |
|
Tags |
boundary conditions, buoyantboussinesqsf, continuity error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error compiling modified applications | yvyan | OpenFOAM Programming & Development | 21 | March 1, 2016 05:53 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
attach/detach (valve opening/closing) | phsieh2005 | OpenFOAM Running, Solving & CFD | 2 | March 21, 2009 06:18 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |