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

prghpressure

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tankerp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2018, 08:59
Default prghpressure
  #1
New Member
 
krishnan
Join Date: Feb 2018
Posts: 16
Rep Power: 5
tankerp is on a distinguished road
I urgently need clarification on pressure boundary conditions for my simulation.

1. I am performing a multiphase simulation in a water column using twoPhaseEulerFoam. The entire column is filled with water. The second phase enters through an inlet at the bottom of the column (prescribing velocity). Gravity is in the direction against the flow.

I am currently using the following BC:

For p:
Code:
internalField       uniform 0;
     inlet
     {
         type               calculated;
         value              $internalField;//
         }    

       outlet
         {
          type               calculated;
          value              $internalField;
         }
For p_rgh:
Code:
internalField       uniform 0;

        inlet
     {
          type            fixedFluxPressure;
          value           $internalField;
         }    

      outlet
         {
          type            prghPressure;
          p               $internalField;
          value           $internalField;
         }
For U:
Code:
inlet
        {
        type               fixedValue;
        value              uniform (0 1 0);
        }

    outlet
    {
        type               pressureInletOutletVelocity;
         phi                phi.air;
        value              $internalField;
    }
2. For some tutorials, the initial value in the internalfield are 0 for p and p_rgh and for some others they are 1e5. How is this decided?
tonnykz likes this.

Last edited by wyldckat; January 5, 2019 at 14:54. Reason: Added [CODE][/CODE] markers
tankerp is offline   Reply With Quote

Old   January 1, 2019, 12:40
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,279
Rep Power: 31
olesen will become famous soon enougholesen will become famous soon enough
Compressible vs. incompressible?
olesen is offline   Reply With Quote

Old   January 1, 2019, 15:08
Default
  #3
New Member
 
krishnan
Join Date: Feb 2018
Posts: 16
Rep Power: 5
tankerp is on a distinguished road
The twophaseeulerfoam solver is a compressible solver
tankerp is offline   Reply With Quote

Old   January 5, 2019, 06:45
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,587
Blog Entries: 6
Rep Power: 46
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,



a) please use code tags
b) Mark knows that and just gave you the hint


for incompressible flows, the pressure gradient is of interest (not the absolute value)
for compressible cases, the pressure gradient, as well as the absolute value, is of importance (thermodynamic - calculation of rho)
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Tags
prghpressure, twophaseeulerfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
prghPressure BC, make static pressure p time-dependent of_novice OpenFOAM Pre-Processing 2 June 7, 2017 05:26


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