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

Pressure fixed value in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2021, 06:39
Default Pressure fixed value in OpenFoam
  #1
New Member
 
Join Date: Jun 2021
Posts: 5
Rep Power: 4
badreddine0 is on a distinguished road
Hello Everyone !!


I am coming to you because I need a little help to run a simulation on Openfoam. I am still new, so the question may seem silly.


I want to run a simulation of a laminar flow in a circular pipe. But, I have an error message for the pressure boundary condition. I can not impose a fixed value for the pressure for any boundary.


Here is the error message:
"
gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type fixedvalue) on patch walls of field p in file "/root/localfolder/pipe/0/p" You are probably trying to solve for a field with a generic boundary condition.

From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 811.

"
I obtain exactly the same error for any boundary.


Here is my 0/p file:
Code:
 

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

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedvalue; 
        value           uniform 15;
    }

    outlet
    {
        type            fixedvalue;
        value           uniform 0;
    }

    walls
    {
        type            zeroGradient;
    }

    side1
    {
        type            wedge;
    }

    side2
    {
        type            wedge;
    }
}

Can you help to understand the problem ?


Thank you for helps,


Best regards,
badreddine0 is offline   Reply With Quote

Old   June 28, 2021, 13:27
Default Check boundary condition for velocity
  #2
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8
Rvadrabade is on a distinguished road
Probably, the velocity boundary condition may not be correctly set with respect to pressure one. If possible can you share the U file boundary conditions.
Rvadrabade is offline   Reply With Quote

Old   June 29, 2021, 11:11
Default
  #3
New Member
 
Join Date: Jun 2021
Posts: 5
Rep Power: 4
badreddine0 is on a distinguished road
You are right, there was a mistake in 0/U. Thanks you
badreddine0 is offline   Reply With Quote

Reply

Tags
boundaries condition, openfoam


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
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
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 23:41.