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

Hi,I have a question about momentum equation in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By fumiya
  • 1 Post By santiagomarquezd
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2013, 09:19
Question Hi,I have a question about momentum equation in interFoam
  #1
New Member
 
anonymous
Join Date: Apr 2010
Posts: 14
Rep Power: 16
shchao is on a distinguished road
Dear Foamers:
I have read Henrik Rusche's phd thesis.Now i meet a question in the momentum equation of interFoam. Mr. Rusche defined an 'H' operator AH=As-An*phi where 'As' means source vector.Does As include the item like -grad(p)-g*x*grad(rho)...?Or What included in As?Thank you very much!
shchao is offline   Reply With Quote

Old   January 13, 2013, 05:59
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
Take a look at the interFoam/UEqn.H:

Code:
    fvVectorMatrix UEqn
    (
        fvm::ddt(rho, U)
      + fvm::div(rhoPhi, U)
      + turbulence->divDevRhoReff(rho, U)
     ==
        sources(rho, U)
    );
In the case of UEqn.H(), 'H' operator is constructed from the above
fvVectorMatrix UEqn. In the above definition of UEqn, there is no
terms corresponding to grad(p) and g*x*grad(rho), so these terms
are not included in the H operator in the interFoam solver.

Fumiya
fumiya is offline   Reply With Quote

Old   January 14, 2013, 07:47
Default
  #3
New Member
 
anonymous
Join Date: Apr 2010
Posts: 14
Rep Power: 16
shchao is on a distinguished road
Here's the UEqn.H in of 2.1.1

surfaceScalarField muEff
(
"muEff",
twoPhaseProperties.muf()
+ fvc::interpolate(rho*turbulence->nut())
);
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U)) ) & mesh.Sf()))
);
UEqn.relax();
if (pimple.momentumPredictor())
{
solve
(
UEqn
==
fvc::reconstruct
(
(
fvc::interpolate(interface.sigmaK())*fvc::snGrad(a lpha1)
- ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh)
) * mesh.magSf()
)
);
}

The H operator is constructed by :
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U)) ) & mesh.Sf()))
);

Right?
shchao is offline   Reply With Quote

Old   January 15, 2013, 07:26
Default
  #4
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
I think so.

Fumiya
shchao likes this.
fumiya is offline   Reply With Quote

Old   January 28, 2013, 21:27
Default
  #5
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Hi, the H operator gives which is defined in Hrv thesis for the implicit terms used in the fvVectorMatrix declaration.

Regards.
Tobi likes this.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   November 13, 2017, 11:05
Default
  #6
Member
 
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 12
behzad-cfd is on a distinguished road
Quote:
Originally Posted by shchao View Post
Here's the UEqn.H in of 2.1.1

surfaceScalarField muEff
(
"muEff",
twoPhaseProperties.muf()
+ fvc::interpolate(rho*turbulence->nut())
);
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U)) ) & mesh.Sf()))
);
UEqn.relax();
if (pimple.momentumPredictor())
{
solve
(
UEqn
==
fvc::reconstruct
(
(
fvc::interpolate(interface.sigmaK())*fvc::snGrad(a lpha1)
- ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh)
) * mesh.magSf()
)
);
}

The H operator is constructed by :
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U)) ) & mesh.Sf()))
);

Right?
Hi,
I've a question about momentum equation of interFoam. why Area (mesh.magSf()) is multiplied to RHS of equation?
behzad-cfd is offline   Reply With Quote

Old   December 18, 2017, 17:34
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
This is based on the divergence operator. We interpolate the deviatoric part of grad(U) to the face and have to multiply it with the surface normal vector (area of the face). As it is given in Hrv thesis, the divergence is approximately the sum of fluxes through the faces.
behzad-cfd likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 18, 2017, 17:40
Default
  #8
Member
 
behzad Ghasemi
Join Date: Sep 2013
Location: Iran
Posts: 56
Rep Power: 12
behzad-cfd is on a distinguished road
Quote:
Originally Posted by Tobi View Post
This is based on the divergence operator. We interpolate the deviatoric part of grad(U) to the face and have to multiply it with the surface normal vector (area of the face). As it is given in Hrv thesis, the divergence is approximately the sum of fluxes through the faces.
Thanks for your great answer Tobias. I''ll read the harvoj jasak's thesis for further information.

Regards,
behzad-cfd 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
solving the momentum equation in UEqn. callahance OpenFOAM 2 October 18, 2012 09:38
momentum equation question mauz Main CFD Forum 0 March 26, 2010 11:34
Momentum equation used by mixture model George FLUENT 0 May 19, 2005 13:07
Problem with momentum equation Francisco Main CFD Forum 4 August 5, 2004 20:04
Nonstaggered Grids and Momentum Interpolations S. Wang Main CFD Forum 3 March 2, 2001 13:44


All times are GMT -4. The time now is 22:27.