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

Face Flux correction in pimpleFOAM after momentum corrector

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2021, 12:13
Default Face Flux correction in pimpleFOAM after momentum corrector
  #1
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
In the pEqn.H of pimpleFoam, face fluxes are corrected after the momentum correction in case of moving meshes in the lines 64ff
https://cpp.openfoam.org/v6/incompre...8H_source.html
Code:
// Correct Uf if the mesh is moving
 fvc::correctUf(Uf, U, phi);
 
 // Make the fluxes relative to the mesh motion
 fvc::makeRelative(phi, U);
It is my understanding that mesh motion is calculated before the momentum predictor based on the old flow field and the influence of the moving mesh on face fluxes is accounted for by space conservation law in pimpleFoam.C line 80-96.
https://cpp.openfoam.org/v6/pimpleFoam_8C_source.html
Code:
                 mesh.update();
 
                 if (mesh.changing())
                 {
                     MRF.update();
 
                     if (correctPhi)
                     {
                         // Calculate absolute flux
                         // from the mapped surface velocity
                         phi = mesh.Sf() & Uf();
 
                         #include "correctPhi.H"
 
                         // Make the flux relative to the mesh motion
                         fvc::makeRelative(phi, U);
                     }
It is not quite clear to me why the face fluxes are corrected again in pEqn.H. Can someone enlighten me?
Bazinga 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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Star ccm 9.02 - unsteady flux dissipation correction fivos STAR-CCM+ 4 April 28, 2014 10:37


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