CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

An old story... the p_rgh field

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 2, 2019, 10:21
Default An old story... the p_rgh field
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi everybody,

even though people might think I am good in FOAM, I am having still problems with the p_rgh field and boundary conditions. Well in the numerical point of view it is not a big deal to get the idea of the p_rgh field and even the derivation of the equation. However, letīs talk about that (again) using a relatively simple case.

Referring to the attached PDF, we see two tanks (1) and (2) filled with water while on both tanks an atmospheric pressure is given above the fluid level. The filling level difference is given by \Delta h_{12} represents the level difference. Each tank has a pipe to the storage tank shown in the middle of the draft.

The area of interest is given in the right bottom corner. Letīs imagine infinite large tanks (1) and (2) which means that the water level does not change during time. Thus, we always have a defined (and fixed) hydrostatic pressure that acts as a driving force for the water (1) and water (2) to flow into the storage tank (3).


Let's assume that tank (1) has 30 degC warm water and tank (2) has 45 degC warm water. We take a defined mass flow out of tank (3) while new water is sucked in from tank (1) and tank (2).

The ratio depends on the hydrostatic pressures of both streams. Means, if \Delta h_{12} increases (higher water level in the tank (2)), more water from the tank (2) is flowing into tank (3).


As in all p_rgh cases, I am struggling with the correct pressure boundary conditions.


Questions
  • Which pressure boundary conditions should be used for p_rgh for the fluid (1) and (2) and at the outlet (3)
  • For (3) I would use a fixedFluxPressure while setting the mass flow rate of interest
  • For (1) and (2) I have no idea of the p_rgh values and bc; assuming a constant water height in the tank (1) and (2), it should be possible to set fixed pressure value. However, the p_rgh quantity is without the hydrostatic part which means, for example, that for constant temperature the p_rgh field is equal in the whole domain (if no flow occurs)

Did anybody had similar set-upīs before and can help me out? I was looking into the hydrostatic* pressure boundary conditions but did not find any suitable one for my case.

Any hints are welcomed.
Thank you in advance
Tobi
Attached Files
File Type: pdf p_rgh.pdf (32.1 KB, 52 views)
mikulo likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

 


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
External Magnetic Field Data Format for FLUENT MHD Module eduardvinter FLUENT 0 January 24, 2019 01:54
simpleDyMFoam on v1806 gamemakerh OpenFOAM Programming & Development 0 November 8, 2018 08:15
potential flows, helmholtz decomposition and other stuffs pigna Main CFD Forum 1 October 26, 2017 08:34
[General] How to create an additional vector with {Field 4, Field 5, Field 6} Bombacar ParaView 1 August 15, 2015 18:05
Demagnetization field jan0385 ANSYS 0 April 12, 2012 09:09


All times are GMT -4. The time now is 11:20.