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

Outlet Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2022, 19:31
Default Outlet Boundary Condition
  #1
New Member
 
Join Date: Jul 2022
Posts: 14
Rep Power: 3
Pamela93 is on a distinguished road
Hello everyone,

I am trying to simulate a 3D model of a gauge station of 30 m length in a River for my master thesis in OpenFOAM. I already have created a model and I have used the solver interFoam, so now I am checking the results. For the inlet path, the graph Flow over time represents a constant Flow equal to 20.6 m3/s, which is the selected inlet value. However, checking the outlet results, the graph Flow over time shows that the flow is increasing over time and after 35 seconds of running the simulation, the flow is 80 [m3/s].
I would like to know if there is a boundary condition that allows a continuous flow flowing out of the volume to represent the real condition of a river. Furthermore, I am attaching the U file with my boundary conditions if someone would like to check it.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (1 0 0);

boundaryField
{
    inlet
    {
	
        type variableHeightFlowRateInletVelocity;
		flowRate 20.6; //(m3/s)
		alpha alpha.water;
		value uniform (0 0 0);
		
		//type            variableHeightFlowRate;
        //lowerBound      0.0;
        //upperBound      0.9;
        //value           uniform 0;
   
        //type            flowRateInletVelocity;
        //volumetricFlowRate constant (10 0 0);
    }

    Flume
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    atmosphere
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }

    outlet
    {
        type            zeroGradient;//inletOutlet
        //inletValue      uniform (0 0 0);
       //value           $internalField;
    }
    
}


// ************************************************************************* //
Any help and feedback are highly appreciated.
Pamela93 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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 00:52.