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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 12:25
Default groovyBC interFoam splitted inlet -- massflowrate
  #1
Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 12
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, 07:51
Default
  #2
Member
 
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 12
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:29
Wave generation inlet using interFoam Katzenpaul OpenFOAM Running, Solving & CFD 2 February 6, 2013 09:28
How to set up the inlet boundary condition for a low pressure case? beastieboys6 FLUENT 3 April 10, 2012 22:46
[swak4Foam] adjust inlet temperature depending on values of monitor points (groovyBC) braennstroem OpenFOAM Community Contributions 2 May 31, 2011 13:45
Inlet diffuser of ramjet Mohammad Kermani Main CFD Forum 25 December 29, 2000 18:46


All times are GMT -4. The time now is 14:55.