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

Hydrodynamic pressure distribution ignores boundary

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Carlo_P

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2020, 08:14
Default Hydrodynamic pressure distribution ignores boundary
  #1
New Member
 
Kai Salscheider
Join Date: Aug 2018
Posts: 13
Rep Power: 8
Skaiwalker is on a distinguished road
Hello all,

I learned a lot from the members of this awesome forum but by now I can't get my head around the hydrodynamic pressure and its point of reference:

I made a simple cuboid case, with z=0m at the bottom and z=0.1m at the top, the case is attached. I set the top plane as "fixedValue uniform 1e5" in "0/p" and "0/p_rgh" and "U=noSlip" at the entire boundary. But, as can be seen in the attached picture (top plane: boundary "air", sides show the internal mesh), the pressure distribution is wrong: It decreases from 1e5 at the bottom to ~.98e5 at the top. It should be 1e5 at the top (as stated in the boundary file) and ~1.2e5 at the bottom.

So the question is: Why is my boundary condition not accepted or what am I missing?


Background info on provided case: I want to simulate ingot melting in a crucible. The top plane represents the melt-air interface (pressure = 1e5Pa). The solver is buoyantPimpleFoam using an fvOpttion of type solidificationMeltingSource for ingot modeling. pRef cell is a cell at the top of the domain set to pRefValue 1e5.

PS: When I adjust the mesh to be z=0 at the top and z=-0.1m at the bottom the pressure distribution is right, represented by blockMeshDict_adjusted in the uploaded case.

Thank you very much in advance! Greetings
Kai
Attached Images
File Type: jpg pressureDistribution_cube.jpg (32.4 KB, 5 views)
Attached Files
File Type: zip buoyantPimpleFoam_tabulated.zip (18.7 KB, 2 views)

Last edited by Skaiwalker; September 28, 2020 at 08:16. Reason: bad title
Skaiwalker is offline   Reply With Quote

Old   September 28, 2020, 08:24
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
In he first case, there is a conflict between p and p_rgh.
It is not possible that both have the same value at 0.1m.
Only in the second case they have the same value, because rgh=0, so p and p-rgh are the same.


In the first case, if p_rgh is 1e5, the pressure is something less.


Is 1e5-1.2*9.81*0.1=1e-5-1.1772=99998 as shown.


So, the p file is ignored and only the p_rgh is taken in account.
Skaiwalker likes this.
Carlo_P is offline   Reply With Quote

Old   September 28, 2020, 13:33
Default
  #3
New Member
 
Kai Salscheider
Join Date: Aug 2018
Posts: 13
Rep Power: 8
Skaiwalker is on a distinguished road
Thank you for your fast and precise answer! Sometimes one misses the wood for the trees

After tinkering around with the boundarys a bit, I found the "prghPressure" boundary condition, which sets the pressure to my pleasure!
Skaiwalker is offline   Reply With Quote

Reply


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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 05:28
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
Error in compiling new drag model k.farnagh OpenFOAM Programming & Development 13 May 21, 2016 04:08
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Building OpenFoAm on SGI Altix 64bits anne OpenFOAM Installation 8 June 15, 2006 10:27


All times are GMT -4. The time now is 19:52.