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

How to add a body force to a momentum equation

Register Blogs Community New Posts Updated Threads Search

Like Tree51Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2021, 05:19
Default Unit of momentum source
  #21
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 13
hiuluom is on a distinguished road
Hi foamer,

I see in the reactingPacelFoam OF4 solver usning momentumSource1 in fvOption file with vectorSemiImplicitSource. I do not know that the unit of U is m/s or what else?
I want to add 4.12m/s to fvOption.
hiuluom is offline   Reply With Quote

Old   May 10, 2021, 09:41
Default
  #22
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
The units of the source term for any transport equation can be deduced from the equation itself. Consider a general transport equation:

\frac{\partial \phi}{\partial t} + ... = ... + S_\phi

then the units of the source, S_\phi, are the rate of change of quantity \phi. The only complication is that the source terms can be quoted as specific terms (as above) or absolute, in which case the term is multiplied by the cell volume (i.e. the result from finite volume discretisation of the above transport equation).

So, returning to your example, I am guessing that you want to add a source of momentum and not velocity (a source of velocity doesn't make physical sense). In which case, \phi = \rho U and the units of the source are therefore kg/m^2.s^2 (specific) or kg.m/s^2 (absolute), i.e. units of mass flow rate times velocity. Of course, if the solver is a kinematic solver like simpleFoam then remember that the solver assumes that \rho=1.
hiuluom likes this.
Tobermory is offline   Reply With Quote

Old   May 10, 2021, 09:48
Default
  #23
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 13
hiuluom is on a distinguished road
Thank Tobermory,

You right. I want to add momentum for water in interFoam solver. If I multiply rho.water*U, do I get momentum in fvOptions?
and unit of the absolute source kg.m/s2, how to get it? I see kg/m3*m/s=>kg/m2.s
hiuluom is offline   Reply With Quote

Old   May 10, 2021, 10:03
Default
  #24
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
Okay. Say you want to add a momentum source of 2kg/s * 2.5m/s = 5kg.m/s2 into your simulation, using a block of cells that has a total volume of 0.5m3. The specific momentum source value is then 5kg.m/s2 / 0.5m3 = 10kg/m2.s2. That's the (specific) value that should be injected in each of the source cells in fvOptions.
Tobermory is offline   Reply With Quote

Old   May 10, 2021, 23:08
Default
  #25
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 13
hiuluom is on a distinguished road
Thank Tobermory. I only have the velocity 2.5m/s, but I do not got flow rate of soure. Does it covert density and volume to mass flow rate?
hiuluom is offline   Reply With Quote

Old   May 11, 2021, 16:39
Default
  #26
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
No - you need to know the mass flow rate in order to be able to calculate the momentum source ...
Tobermory 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
Add extra body force (e.g. gravity) in simpleFoam: cavity example juchess OpenFOAM Running, Solving & CFD 6 December 17, 2016 08:19
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 10:23
how to add a force in the momentum equation guillaumem OpenFOAM 0 June 14, 2010 04:49
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 15:01
UDF Addidtional Force to momentum equation sfawal FLUENT 10 July 15, 2009 10:29


All times are GMT -4. The time now is 08:28.