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

[swak4Foam] Inlet Boundary with groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2017, 10:00
Default Inlet Boundary with groovyBC
  #1
New Member
 
Join Date: Apr 2017
Posts: 6
Rep Power: 9
fmerk is on a distinguished road
Hello everyone,

I'm currently working on a spillway simulation where I want to set my inlet boundary as a constant flow height (h=3m). I want the flow to be pressure-driven by a hydrostatic pressure distribution at the named flow height. I chose the interFoam solver.

I divided the inlet patch into a inletWater (alpha=1) and inletAir (alpha=0). Now, I'd like to set up a hydrostatic pressure for the inletWater patch:

inletWater
{

type groovyBC;
valueExpresion "9810.*(3-pos().z)+100000";
fractionExpression "1";
rho rho;
psi none;
gamma 1;
p0 uniform 100000;
value uniform 100000;

}

Checking this setup (and many alternatives) does not provide a hydrostatic pressure distribution, but a single value for the whole patch (=100000).


I also prescribed a water phase with a pressure distribution for the internal field using funkySetFields which works successfully.

expressions
(
pressureWater
{
field p_rgh; //field to initialise
expression "9810.*(2-pos().z)+100000";
condition "(pos().z<2) && (pos().z>=0)"; //ranging from 2 meter to 0 meter
keepPatches 1;
}

);

How can I setup my inlet to have a constant hydrostatic pressure for a given flow height?

I'm probably missing something fundamental. Since I'm googling since weeks now, I'm getting frustrated.



Kind regards,

fmerk
fmerk 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
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 21:16
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
Setting rotating frame of referece. RPFigueiredo CFX 3 October 28, 2014 04:59
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 13:15.