|
[Sponsors] |
Hydrodynamic pressure distribution ignores boundary |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 28, 2020, 08:14 |
Hydrodynamic pressure distribution ignores boundary
|
#1 |
New Member
Kai Salscheider
Join Date: Aug 2018
Posts: 13
Rep Power: 8 |
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 Last edited by Skaiwalker; September 28, 2020 at 08:16. Reason: bad title |
|
September 28, 2020, 08:24 |
|
#2 |
Senior Member
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8 |
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. |
|
September 28, 2020, 13:33 |
|
#3 |
New Member
Kai Salscheider
Join Date: Aug 2018
Posts: 13
Rep Power: 8 |
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! |
|
|
|
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 |