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

groovyFlowRateInletVelocity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By mgdenno

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2015, 07:49
Question groovyFlowRateInletVelocity
  #1
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 12
nanavati is on a distinguished road
Hello All,

How do I change mass flow rates at inlet, only for a certain timesteps ?

for example, as of now my inlet U patch is,

Inlet
{
type flowRateInletVelocity;
massFlowRate constant 0.00195277; //= 7 kg/h
rhoInlet 1.188;
value uniform (1 0 0);
}

where as you can see Mass flow of Air is 7 kg/h (0.00195277 kg/sec)


now what I want to do is,

I want to change this mass flow from 7 to 5 kg/hr, only for a period of 2 seconds. then back to 7 kg/hr.

(simulation controlDict; startTime is 0 sec and endTime is 10 sec)


I guess this can be done by groovyBC, but i have no idea how to change the boundary condition and its expressions.
nanavati is offline   Reply With Quote

Old   January 29, 2015, 20:11
Default
  #2
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
Try this http://www.openfoam.org/version2.1.0...conditions.php
nanavati and Tom123 like this.
mgdenno is offline   Reply With Quote

Old   January 30, 2015, 05:10
Default
  #3
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 12
nanavati is on a distinguished road
Quote:
Originally Posted by mgdenno View Post
Thanks for the quick suggestion.. It works like a charm !
nanavati is offline   Reply With Quote

Old   January 30, 2015, 05:17
Default
  #4
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 12
nanavati is on a distinguished road
Quote:
Originally Posted by mgdenno View Post

I modified my Inlet BC as,



Inlet
{
type flowRateInletVelocity;
massFlowRate tableFile;
rhoInlet 1.188;
tableFileCoeffs
{
fileName "$FOAM_CASE/ramp"
outOfBounds clamp;
}
}

and in my Case folder I made on file named ramp

which contains,

(
(0 0.001952)
(7 0.001952) // from 0 to 7 miliseconds, constant flow
(8 0.003888) // from 7 to 8 miliseconds, increase in flow
(9 0.001952) // from 8 to 9 miliseconds, decreasing it again to initial value
)
nanavati is offline   Reply With Quote

Reply

Tags
flowrateinletvelocity, groovybc, swak4foam


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



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