CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

p_rgh diverges under zeroGradient boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2020, 05:55
Default p_rgh diverges under zeroGradient boundary condition
  #1
New Member
 
Roie Ezraty
Join Date: Oct 2020
Posts: 4
Rep Power: 6
Roie_E is on a distinguished road
Hello all,

I use a buoyantBoussinesqPimpleFoam solver to model transient turbulent flow in a 2-D square salty lake which is open to the atmosphere at the top. I try to only look at the water phase without simulating the air above. Left, right and bottom boundaries are walls.

I would like to pose a fixedFluxPressure for p_rgh at the walls (left right and bottom) and a zeroGradient boundary condition for p_rgh at the top but this field starts to diverge from the bottom left corner and convect the whole regime.

It looks like this after the first time step (0.005s):


I could gladly add the source code I just don't know how to do it.


Other boundary conditions used:

left, right and bottom walls:
epsilon --> epsilonWallFunction
k --> kqRWallFunction
alphat --> alphaJayatillekeWallFunction
nut --> nutkWallFunction
p --> calculated
p_rgh --> fixedFluxPressure of rho=rhok and value of uniform 0
T --> zeroGradient
U --> noSlip

top patch:
epsilon --> slip
k --> slip
alphat --> slip
nut --> slip
p --> calculated
p_rgh --> zeroGradient
T --> fixedValue of 300
U --> slip

Once I pose a totalPressure=0 boundary condition for p_rgh at the top, the bottom left corner stops acting weird so I think this might be a better boundary condition - is it actually?

One last thing - I would like to mention that added some extra scalar fields such as salinity to the solver with the same equations as T but with different diffusion coefficient. I did not mention them here but they will be available in the source code if necessarry.

Thanks a lot,
Roie
Roie_E is offline   Reply With Quote

Reply

Tags
boundary condition, buoyantboussinesqpimple, p_rgh


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Constant mass flow rate boundary condition sahm OpenFOAM 0 June 20, 2018 23:45
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 03:53


All times are GMT -4. The time now is 23:25.