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

Explicit evaluation of all the terms of momentum equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2014, 09:39
Default Explicit evaluation of all the terms of momentum equation
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi All,

i am using interFoam and i would like to evaluate separately the contribution of each term of the momentum equation at the end of each time-step. The first thing i am trying to check (to be sure i am calculating them correctly) if the most obvious one: if all the terms of the equation sum up to zero (or at least to something very small), but...surprisingly...they don't. What i did is:

at the end of the pressure loop, just before the runTime.write() is called, i added:

volVectorField sumNS = fvc::ddt(rho,U) + fvc::div(rhoPhi,U) + fvc::grad(p_rgh) - fvc::laplacian(muEff, U) -(fvc::grad(U) & fvc::grad(muEff)) - interface.sigmaK()*fvc::grad(alpha1);

and then i took the volume integral of this quantity (summing up over all the cells). The results is not zero, neither something small.

What i am not sure is if i am calculating all the contributions in a way that is consistent with predictor-corrector step in interFoam or maybe i just missed something in the definition of "sumNS" (gravity is set to zero, that's why the term ghf*fvc::snGrad(rho) is missing and the pressure gradient is calculated with p_rgh; also the simulation is laminar).

So, should i expect a result different from zero if i calculate explicitly the sum of all the terms of the equation?...i hope the answer is no...
So what i am doing wrong?

Best,

Andrea
Andrea_85 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
Momentum Equation used in Fluent for porous media Sherry FLUENT 1 September 12, 2016 10:22
Descretization of momentum equation to solve Navier stokes equation by finite volume manishsathe14 Main CFD Forum 2 December 30, 2012 22:25
Question on the discretization of momentum equation in icoFoam MPJ OpenFOAM 3 October 4, 2011 09:44
Momentum equation of Darcy's law sambatra OpenFOAM Running, Solving & CFD 2 April 17, 2009 03:27
Coupling between momentum and energy equation Mattia FLUENT 0 October 26, 2007 08:02


All times are GMT -4. The time now is 11:35.