CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Velocity Profile at inlet if Mass flow rate BC is given

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By chegdan
  • 1 Post By Struggle_Achieve

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2016, 01:28
Question Velocity Profile at inlet if Mass flow rate BC is given
  #1
Member
 
Sing
Join Date: Jan 2016
Posts: 30
Rep Power: 10
Struggle_Achieve is on a distinguished road
Hello Foamers and Researchers!!
Greetings!

I am quite new to OpenFoam, has been practicing it from last 1 month.
I have a doubt and I would be very grateful if anyone can help me with this.

In a problem I have given flowRateInletVelocity boundary condition at my inlet, specifying mass flow rate. fixedFluxPressure BC is given for pressure at the inlet. I want to know that if we give mass flow rate (or volumetric) BC then how the velocity profile at inlet will be decided? (Parabolic, uniform etc)

Regards,
Prateek.
Struggle_Achieve is offline   Reply With Quote

Old   January 28, 2016, 09:31
Default
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Prateek,

Seems you have double posted, so I'll answer both quickly to let the admin delete one if they like. Have a look at the code in

Code:
/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C
there is a line in the updateCoeffs member function that says

Code:
        // mass flow-rate
        operator==(n*avgU/uniformRho);
This lets us know that it is a uniform velocity profile normal to the patch surface. The code is commented to let you know what is happening and look further in the .H file in the same directory for more guidance.
Struggle_Achieve likes this.
chegdan is offline   Reply With Quote

Old   January 29, 2016, 02:52
Thumbs up
  #3
Member
 
Sing
Join Date: Jan 2016
Posts: 30
Rep Power: 10
Struggle_Achieve is on a distinguished road
Hello Daniel,

Thanks a lot for the quick reply. I noticed afterwards that I posted this twice. Sorry for the same.

Yes I have seen the code as you mentioned and got what you said.

My deepest gratitude for sorting out my confusion.

Regards,
Prateek.
chegdan likes this.
Struggle_Achieve is offline   Reply With Quote

Old   April 14, 2019, 21:03
Default
  #4
Senior Member
 
Brett
Join Date: May 2013
Posts: 212
Rep Power: 13
Bdew8556 is on a distinguished road
Hey guys,

Do you know how to set the mass flow rate NOT normal to the boundary?

B
Bdew8556 is offline   Reply With Quote

Reply

Tags
flowrateinletvelocity, mass flow rate bc, velocity profile


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
Using a Mass Flow Rate profile with a Temporal field as a Boundary Condition Jotheman Main CFD Forum 0 October 18, 2015 09:25
Please help me ( udf for regulation the mass flow rate at the inlet ) swidi Fluent UDF and Scheme Programming 0 July 7, 2015 09:17
How to define a fixed velocity for a given mass flow rate on inlet mqasimali FLUENT 2 April 12, 2013 17:24
velocity or mass flow inlet? Silvia FLUENT 1 August 12, 2005 13:55
Mass Flow Inlet Pravir Kumar Rai FLUENT 0 February 19, 2003 14:03


All times are GMT -4. The time now is 19:20.