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

pressure inlet conditions for unknown pressure

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By alexB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2015, 11:18
Default pressure inlet conditions for unknown pressure
  #1
New Member
 
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 10
dEntropy is on a distinguished road
hi,

me = noob
me = that guy who has spent days searching
me = that guy who prefers comsol over openFoam


preliminaries: i'm trying to solve an incompressible flow problem with a simple Newtonian fluid. I am using a fairly simple geometry, though the fluid dynamics are anything but simple. I know the Re, so i am setting the inlet as a uniform fixed value and trying to get output from potentialFoam...for use in my pimpleFoam simulation.

I do not know the pressure, but i can at least set the outlet as a uniform fixed value = 0, or zerogradient.

I have absolutely no idea what value to set for pressure inlet. None!

ideas?


p:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    

    inlet-1
    {
        type            zeroGradient;
    }

    inlet-2
    {
        type            zeroGradient;
    }

    outlet-1
    {
        type            zeroGradient;
    }

    outlet-2
    {
        type            zeroGradient;
    }
   
    

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }
}
U:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    
    outlet-1
    {
        type            zeroGradient;
    }

    outlet-2
    {
        type            zeroGradient;
    }

    

    inlet-1
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
    }

    inlet-2
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
    }
    

    walls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}
dEntropy is offline   Reply With Quote

Old   July 5, 2015, 00:38
Default
  #2
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 12
AshwaniAssam is on a distinguished road
What happens you use these boundary conditions. I mean to say as per the p file, you are using zero gradient for the pressure do you get the result with this. It should be working.
AshwaniAssam is offline   Reply With Quote

Old   July 5, 2015, 19:43
Default
  #3
New Member
 
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 10
dEntropy is on a distinguished road
i've since set the pressure outlet to fixed value = 0.

i think the solvers and schemes are equally as important, and i've recently found ones that work well.
dEntropy is offline   Reply With Quote

Old   July 6, 2015, 07:15
Default
  #4
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi mike,

perhaps pressureInletOutletVelocity ( http://cfd.direct/openfoam/user-guide/boundaries/ ) would fit to your problem but I don't know what you are planning with the inlet and outlet.

Perhaps you should look which tutorial ( http://www.rapidof.com/wp-content/up...rialsGuide.pdf ) could fit to your problem best and adapt it for your needs.

regards
Alex
student666 and AshwaniAssam like this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by alexB; July 15, 2015 at 08:33.
alexB is offline   Reply With Quote

Old   July 15, 2015, 10:52
Default
  #5
New Member
 
mike
Join Date: Jun 2015
Posts: 12
Rep Power: 10
dEntropy is on a distinguished road
hi Alex,

so, I've just set the pressure inlets as zeroGradient boundaries and the outlets as fixed value = 0.

i was using the velocity inlets as surfaceNormalFixedValue and the velocity outlets as zeroGradients.


i have since been working towards explicitly solving for the square duct velocity profile and applying that as the inlet condition. otherwise, i need to run potentialFoam or my actual pisoFoam run with long inlet channels before I get a fully developed profile.
dEntropy is offline   Reply With Quote

Old   July 15, 2015, 16:27
Default
  #6
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
Hi mike,

I am not that much in potentialFOAM, pisoFOAM and the corresponding boundary conditions.

I hope someone else could help you better.

regards
Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB 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
Pressure inlet boundary conditions for open channel flows jack2000 OpenFOAM Running, Solving & CFD 5 December 6, 2018 11:00
2D Hypersonic Inlet in FLUENT - Convergence Issues Fraisdegout FLUENT 6 December 15, 2016 02:07
CFX Simple valve model, inlet and outlet conditions 749604 CFX 24 August 11, 2014 18:51
UDF to set velocity and pressure in inlet GerardX89 Fluent UDF and Scheme Programming 0 July 16, 2012 10:15
pressure with velocity inlet boundary conditions Ashraf Sharara FLUENT 1 August 21, 2008 07:29


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