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

Pressure definitions for buoyantSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2016, 03:00
Default Pressure definitions for buoyantSimpleFoam
  #1
Member
 
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 10
Gerrit is on a distinguished road
Hi,

I am solving a case with buoyantSimpleFoam. It is a small heated wire in a pipe that is laying horizontal (see picture attached). So inlet and outlet are on the same level.
Although my simulations run, I am still not sure about the pressure definitions.

1. As far as I know the pressures are related by this:
PHP Code:
p_rgh rho*g*
I am simulating a gas and my pipe is only 6 mm in diameter, wouldn't that lead to:
PHP Code:
p=p_rgh 
2. How do I handle this if I have a pressure of for example 2 bar at outlet?

What I did until now is to define my p file like always:

Code:
   
  dimensions      [1 -1 -2 0 0 0 0];

 internalField   uniform 2e5;

   inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 2e5;
    }
     "(wall1|wall2|wire)"
    {
        type            zeroGradient;
    }
    "(bottom|top)"
    {
        type            empty;
    }
and the p_rgh like this:

Code:
dimensions      [1 -1 -2 0 0 0 0];    

internalField   uniform 2e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 2e5;
    }

    "(wall1|wall2|wire)"
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 2e5;
    }

    "(bottom|top)"
    {
        type            empty;
    }
}
Especially in the p_rgh I am not sure, if my definitions are correct. Does it make sense to use zeroGradient at inlet for this?

Can someone give a comment on this please?

Thank you!

Best
Gerrit
Attached Images
File Type: png model.png (26.2 KB, 17 views)

Last edited by Gerrit; February 21, 2016 at 05:14. Reason: Wrong content about the pressure unit
Gerrit is offline   Reply With Quote

Old   February 21, 2016, 05:19
Default
  #2
Member
 
Join Date: Jul 2015
Location: Aalborg
Posts: 83
Rep Power: 10
Gerrit is on a distinguished road
Hi,

I continued on the case and found a tutorial called circuitBoardCooling. I copied the boundaries from there it now I think it makes somehow sense:

p:
Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 237233.6;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 237233.6;
    }
     "(wall1|wall2|wire)"
    {
        type            zeroGradient;
    }
    "(bottom|top)"
    {
        type            empty;
    }

}
and p_rgh
Code:
dimensions      [1 -1 -2 0 0 0 0];    

internalField   uniform 237233.6;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 237233.6;
    }

    "(wall1|wall2|wire)"
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 237233.6;
    }

    "(bottom|top)"
    {
        type            empty;
    }
}
I am still a little bit uncertain about the value itself. From my point of view it should be similar to the incompressible cases, where the pressure p is the static pressure. From that point of view I could set it to 0, right?

Best
Gerrit 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
Wind tunnel Boundary Conditions in Fluent metmet FLUENT 6 October 30, 2019 12:23
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Outlet pressure aja1345 FLUENT 5 August 18, 2015 11:02
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 12:41


All times are GMT -4. The time now is 06:02.