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

Mass flux update in simpleFoam and rhoSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2021, 20:17
Default Mass flux update in simpleFoam and rhoSimpleFoam
  #1
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
Hello to all,


I would like to know if anyone can clarify why the mass flux in simpleFoam is calculated as:


Code:
phi = phiHbyA - pEqn.flux();
And in rhoSimpleFoam:


Code:
phi = phiHbyA + pEqn.flux();
Why does the sign change?
trailer is offline   Reply With Quote

Old   June 14, 2021, 20:28
Default
  #2
Member
 
Join Date: Mar 2021
Posts: 39
Rep Power: 5
trailer is on a distinguished road
in simpleFoam it comes from the discretization of the continuity equation:


\vec{v}_P  = a_P^{-1} H(\vec{v}) - a_P^{-1}\nabla P


\nabla \cdot \vec{v} = 0

F = \vec{v}_f \cdot \vec{S_f} = \left (a_P^{-1} H(\vec{v})   \right )_f- \left (a_P^{-1}\nabla P  \right )_f


Where the .flux() function is used to rebuild the fluxes accounting for the implicit and explicit part resulting from the discretization of the laplacian operator (Description of flux() method)


For the rhoSimpleFoam part, I would appreciate the help!
trailer 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
Update of face fluxes in simpleFoam trailer OpenFOAM Programming & Development 0 May 31, 2021 18:24
rhoSimpleFoam with specified mass flow rate at outlet ishan_ae OpenFOAM Running, Solving & CFD 3 September 1, 2020 01:11
simpleFoam and rhoSimpleFoam convergence problem maem93 OpenFOAM Running, Solving & CFD 0 November 6, 2017 06:42
Switching from simpleFoam to rhoSimpleFoam sebastian OpenFOAM 11 January 7, 2015 04:32
Dimesion error after switching from simpleFoam to rhoSimpleFoam sebastian OpenFOAM Bugs 2 June 17, 2010 08:03


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