|
[Sponsors] |
roof boundary condition not acting like atmosphere |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2022, 17:48 |
roof boundary condition not acting like atmosphere
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
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; } } 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; } } 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; } } Nevermind, issue was in my blockMeshDict |
|
|
|
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 |