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

frictional pressure drop in rhoPisoFoam (using fanning friction factor)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2018, 22:09
Default frictional pressure drop in rhoPisoFoam (using fanning friction factor)
  #1
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
I want to include frictional pressure drop calculation in rhoPisoFoam.

frictional pressure drop can be calculated by 0.5*ff*rho*U^2
where ff is fanning friction factor, which can be calculated by using standard correlations based on reynolds number.

I have modified UEqn as following.
Code:
fvVectorMatrix UEqn
(
    fvm::ddt(rho, U)
  + fvm::div(phi, U)
);

if(includeFrictionFactor)
{
  UEqn += fvm::div(phiFrictional, U);
}
phiFrictional is calculated as following.
Code:
phiFrictional =
    fvc::interpolate(fanningFrictionFactor)*
    (
        (fvc::interpolate(U) & mesh.Sf())
      + fvc::ddtPhiCorr(rUA, rho, U, phiFrictional)
    );
and added the following term in pressure equation
Code:
if(includeFrictionFactor)
    {
      pEqn += fvc::div(phiFrictional);
    }
but using this formulation leads to incorrect results.

Please let me know what is wrong in my formulation.

Or

Please suggest me some other solver which has the pressure drop calculation using fanning friction factor.
ashish.svm is offline   Reply With Quote

Old   July 19, 2018, 07:22
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Quote:
Originally Posted by ashish.svm View Post
I want to include frictional pressure drop calculation in rhoPisoFoam.

frictional pressure drop can be calculated by 0.5*ff*rho*U^2
where ff is fanning friction factor, which can be calculated by using standard correlations based on reynolds number.

I have modified UEqn as following.
Code:
fvVectorMatrix UEqn
(
    fvm::ddt(rho, U)
  + fvm::div(phi, U)
);

if(includeFrictionFactor)
{
  UEqn += fvm::div(phiFrictional, U);
}
phiFrictional is calculated as following.
Code:
phiFrictional =
    fvc::interpolate(fanningFrictionFactor)*
    (
        (fvc::interpolate(U) & mesh.Sf())
      + fvc::ddtPhiCorr(rUA, rho, U, phiFrictional)
    );
and added the following term in pressure equation
Code:
if(includeFrictionFactor)
    {
      pEqn += fvc::div(phiFrictional);
    }
but using this formulation leads to incorrect results.

Please let me know what is wrong in my formulation.

Or

Please suggest me some other solver which has the pressure drop calculation using fanning friction factor.
Its wrong, the velocity in your formula is the square of the magnitude of the velocity, or inner product. Besides, why you take the divergence of such force?
Santiago is offline   Reply With Quote

Old   July 19, 2018, 12:28
Default
  #3
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
Quote:
Originally Posted by Santiago View Post
Its wrong, the velocity in your formula is the square of the magnitude of the velocity, or inner product. Besides, why you take the divergence of such force?
Sorry, my understanding of the friction factor was wrong. I found out that this force is applied to the wetted surface.

But I am unable to understand how to modify the momentum equation to include fanning friction term.
ashish.svm 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
caculation of friction factor Dilip Main CFD Forum 9 February 23, 2016 06:00
Pressure drop using Fan type BC Alexis Sack OpenFOAM Running, Solving & CFD 2 September 22, 2014 10:18
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Pressure drop in a heat exchanger Diana FLUENT 5 December 13, 2007 10:33
Pressure drop of valve with valve opening of 30% elogesh Main CFD Forum 2 January 5, 2007 13:30


All times are GMT -4. The time now is 01:21.