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

[swak4Foam] groovyBC interFoam splitted inlet -- massflowrate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 13:25
Default groovyBC interFoam splitted inlet -- massflowrate
  #1
Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13
FerdiFuchs is on a distinguished road
Good evening everyone!

im doing a lot of 2-phase flow calculations in pipes, especially annular-pipes at the moment with differing filling-levels.
my standard procedure is to split the inlet into two patches: inlet_liquid and inlet_vapor. Both of these Inlet patches are set up with an own alpha value and with the BC flowRateInletVelocity -- massFlowRate:



Actually gmsh is refining very much in lower angles at my inlet-patches (which leads to mesh distortions at the inlet patch).

Because of that, im trying to set up a case with only one inlet, which gets divided by groovyBC depending on the filling level of the pipe:

Quote:
inlet
{
type groovyBC;
valueExpression "0";
fractionExpression "(pos().z > -0.002) ? 1 : 0";
value uniform 0;
}
This works very fine for alpha (as you can see in the attached screenshot -- inlet-patch).



my problem is the following: im working with high varrying massflowrates (velocities) for both phases. normally im using flowRateInletVelocity -- massFlowRate for both patches/phases, but this is not longer possible because of the usage of groovyBC and one inlet patch.
The distribution on one patch via groovyBC results in a not exact distributed area for the inlets and i need to adjust the velocity to get the requested massflowrates.

does anybody know how to realize this with groovyBC? how can i get the area values of the distributed inlet patch to recalculate the velocities to get the requested massflowrates?

any help is apreciated!
thanks a lot!
FerdiFuchs

Btw: this screenshot is just an example which should clarify my problem. the real inletpatch looks different
FerdiFuchs is offline   Reply With Quote

Old   October 1, 2014, 08:51
Default
  #2
Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 13
FerdiFuchs is on a distinguished road
solved it by using topoSet and createPatch instead of groovyBC.
Like my old method, with 2 patches and massflowrate-inlet.
FerdiFuchs 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
setting a Constant Inlet flow - Interfoam bdh1103 OpenFOAM Programming & Development 10 March 6, 2016 10:29
Wave generation inlet using interFoam Katzenpaul OpenFOAM Running, Solving & CFD 2 February 6, 2013 10:28
How to set up the inlet boundary condition for a low pressure case? beastieboys6 FLUENT 3 April 10, 2012 23:46
[swak4Foam] adjust inlet temperature depending on values of monitor points (groovyBC) braennstroem OpenFOAM Community Contributions 2 May 31, 2011 14:45
Inlet diffuser of ramjet Mohammad Kermani Main CFD Forum 25 December 29, 2000 19:46


All times are GMT -4. The time now is 11:39.