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

why is the pressure equation in OpenFoam the same for moving grids and for fixed grid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2022, 12:28
Default why is the pressure equation in OpenFoam the same for moving grids and for fixed grid
  #1
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
While looking at the source code of pimpleFoam in the com version of OpenFOAM (see https://develop.openfoam.com/Develop...ble/pimpleFoam) i was wondering why they use the same pressure equation. In books like the one of Ferziger we find the continuity equation in the ALE formulation for moving grids written as:


\frac{d}{dt}\int\rho dV + \oint\rho \mathbf{n} \cdot (\mathbf{U}  - \mathbf{U_g} )  dS = 0.

For incompressible flows of coarse the first term should vanish.


For non moving grids the continuity equation looks like


\frac{d}{dt}\int\rho dV + \oint\rho \mathbf{n} \cdot (\mathbf{U} )  dS = 0.


So i was expecting some relative flux in the pressure equation for the moving grids. But I did not find it.



After thinking a while I realized that for moving grid we have to fulfill also the space conservation equation:


\frac{d}{dt}\int dV = \oint \bold{n} \cdot \mathbf{U_g}  dS.


So if we insert the above equation into the continuity equation for moving grid, the term including the grid velocity cancels out and we have the same continuity equation as for the non moving case.



Hope my reflections are right and saves someone some thinking (if they are right and if not please correct me).


Best


Michael
mAlletto 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



All times are GMT -4. The time now is 00:19.