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

Momentum predictor

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 2 Post By santiagomarquezd
  • 7 Post By santiagomarquezd
  • 1 Post By Andrea_85

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2011, 11:25
Default Momentum predictor
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi all,
i have 2 questions about the solution procedure in interFoam.
The predicted fluxes are bulid in pEqn.H, if i'm not wrong:

Code:
volScalarField rAU(1.0/UEqn.A());
00003     surfaceScalarField rAUf(fvc::interpolate(rAU));
00004 
00005     U = rAU*UEqn.H();
00006     surfaceScalarField phiU
00007     (
00008         "phiU",
00009         (fvc::interpolate(U) & mesh.Sf())
00010       + fvc::ddtPhiCorr(rAU, rho, U, phi)
00011     );
00012 
00013     adjustPhi(phiU, U, p_rgh);
00014 
00015     phi = phiU +
00016     (
00017         fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
00018       - ghf*fvc::snGrad(rho)
00019     )*rAUf*mesh.magSf();
what is the difference between switch on or switch off the momentum predictor in uEqn.H and how it affects the predicted velocities?. What does OF calculate in:

Code:
00019     if (pimple.momentumPredictor())
00020     {
00021         solve
00022         (
00023             UEqn
00024          ==
00025             fvc::reconstruct
00026             (
00027                 (
00028                     fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
00029                   - ghf*fvc::snGrad(rho)
00030                   - fvc::snGrad(p_rgh)
00031                 ) * mesh.magSf()
00032             )
00033         );
00034     }
the second quesiton is: What does it mean
fvc::ddtPhiCorr(rAU, rho, U, phi) in the phiU calculation?

thanks a lot in advance

andrea
Andrea_85 is offline   Reply With Quote

Old   July 19, 2011, 19:52
Default
  #2
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Andrea, predicted velocity is taken into account in H method (check Hrv Thesis). ddtPhiCorr is intended to apply a correction to Rhie-Chow interpolation due temporal scheme.

Regards.
Tushar@cfd and amolrajan like 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   July 20, 2011, 04:49
Default
  #3
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi Santiago and thanks to your reply.
If i'm not wrong, H is a function of U (it takes into into account the velocities of the neighboring cells). So, if the momentum predictor is turned off, which is the velocity used to bulid up H?
Or in another way, are these lines (below) used to calculate a velocity or are used only to do an update of the coefficients of the matrices A and H?

00019 if (pimple.momentumPredictor())
00020 {
00021 solve
00022 (
00023 UEqn
00024 ==
00025 fvc::reconstruct
00026 (
00027 (
00028 fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
00029 - ghf*fvc::snGrad(rho)
00030 - fvc::snGrad(p_rgh)
00031 ) * mesh.magSf()
00032 )
00033 );
00034 }
Andrea_85 is offline   Reply With Quote

Old   July 20, 2011, 10:29
Default
  #4
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Andrea, if momentum predictor is turned off, U from previous time-step is used, if it is on once the solve method is executed U is refreshed and then used in H method.

Regards.
lth, kaifu, minh khang and 4 others like 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   July 20, 2011, 10:35
Default
  #5
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Ok, now it's totally clear!!

many thanks

andrea
Andrea_85 is offline   Reply With Quote

Old   July 22, 2011, 08:04
Default
  #6
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi Santiago,
i'm still a little bit confused about the velocity reconstruction after the pressure solution.

U += rAU*fvc::reconstruct((phi - phiU)/rAUf);

Why phiU is substracted from the fluxes?
phiU is defined as the sum of the predicted velocity interpolated to the faces and the temporal correction. The contribution of H/A is included in the new velocity because of "+=", so which contribution is substructed? Is the temporal correction?

thanks again

andrea
giack likes this.
Andrea_85 is offline   Reply With Quote

Old   March 11, 2013, 05:09
Default
  #7
Member
 
Join Date: Mar 2013
Posts: 98
Rep Power: 13
giack is on a distinguished road
Quote:
Originally Posted by Andrea_85 View Post
Hi Santiago,
i'm still a little bit confused about the velocity reconstruction after the pressure solution.

U += rAU*fvc::reconstruct((phi - phiU)/rAUf);

Why phiU is substracted from the fluxes?
phiU is defined as the sum of the predicted velocity interpolated to the faces and the temporal correction. The contribution of H/A is included in the new velocity because of "+=", so which contribution is substructed? Is the temporal correction?

thanks again

andrea
do you find a solution to this question? I'am the same question..i tried to compare it with the PISO algorithm but in the PISO algorithm the this U reconstruction is as follow:
U -= rUA*fvc::grad(p);

thanks for help
giack 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 source coefficient and convergence meh CFX 9 October 12, 2020 09:37
Simulation of Axial Fan Flow using A Momentum Source Subdomain Liam CFX 28 July 16, 2013 09:24
Derivation of Momentum Equation in Integral Form Demonwolf Main CFD Forum 2 October 29, 2009 20:53
Why sometimes momentum predictor step is not performed liu OpenFOAM Running, Solving & CFD 10 July 3, 2005 07:56
Nonstaggered Grids and Momentum Interpolations S. Wang Main CFD Forum 3 March 2, 2001 14:44


All times are GMT -4. The time now is 07:40.