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

roof boundary condition not acting like atmosphere

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2022, 17:48
Default roof boundary condition not acting like atmosphere
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9
joshmccraney is on a distinguished road
Hi everyone

I am running OpenFOAM 6, interFoam. I am trying to have an atmospheric boundary condition on the roof (like the dambreak tutorial) of the attached image. Gas is blue, liquid is red. As you can see, liquid is wicking into the roof corners (this is a very small geometry, so water overcomes gravity and does this). But I want the roof to be atmospheric, which is why I have set the 0 directory as shown

alpha.water.orig
Code:
internalField   uniform 0;//initially air in the entire domain - we will change that with setFields!

boundaryField
{

    tank
    {
        type            constantAlphaContactAngle;
	theta0		0;
	limit		gradient;
	value		uniform 0;
    }

    roof
    {
//    This boundary condition provides a generic outflow condition, with
//    specified inflow for the case of return flow.
//    The mode of operation is determined by the sign of the flux across the
//    patch faces.
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }

    inlet
    {
        type            fixedValue;
        value           uniform 1;//only liquid enters the domain
    }

    symm_side
    {
        type            symmetry;
    }
}
p_rgh:
Code:
boundaryField
{

    tank
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    roof
    {
        type            totalPressure;
        p0              uniform 0;
    }

    outlet
    {
        type            totalPressure;
        p0              uniform 0;
	//type		fixedValue;
	//value		uniform 0;
    }

    inlet
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    symm_side
    {
        type            symmetry;
    }

}
U:
Code:
boundaryField
{

    tank
    {
        type            noSlip;			//no slip along the walls - replaces fixedValue with uniform (0 0 0)
    }

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

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

  inlet
  {
      type         uniformFixedValue;
      uniformValue    table
      (
           (0   	(0 0 0.0149))
           (10   	(0 0 0.0149))
      );
  }

    symm_side
    {
        type            symmetry;
    }
}
Any help is greatly appreciated!

Nevermind, issue was in my blockMeshDict
Attached Images
File Type: jpg roof_wet.jpg (36.4 KB, 6 views)
joshmccraney 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Radiation interface hinca CFX 15 January 26, 2014 18:11
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 21:12.