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

gradient term in buoyantBoussinesqPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2019, 11:20
Default gradient term in buoyantBoussinesqPimpleFoam
  #1
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 10
randolph is on a distinguished road
In the buoyantBoussinesqPimpleFoam, the gradient of pressure and the density term is calculated as the following. In my understanding, the surface normal gradient is first calculated and then used to reconstruct the gradient.

Code:
   solve
         (
             UEqn
              ==
             fvc::reconstruct
             (
                 (
                   - ghf*fvc::snGrad(rhok)
                   - fvc::snGrad(p_rgh)
                 )*mesh.magSf()
             )
         );
My question is why not just simply calculating the gradient as:
Code:
-fvc::grad(p_rgh)
Are these two approaches equivalent? If not, why is the first approach better than the second?

Thanks,
Rdf
randolph 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
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 3 September 7, 2022 03:09
Source term for EVAPORATION in Energy Equ. - technical difficulty ? Kummi OpenFOAM 1 September 9, 2019 09:32
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
problem with gradient as source term in coupled equations Cyp OpenFOAM Programming & Development 0 August 16, 2010 13:12
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 10:52


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