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

on the equation solution sequence of buoyantBoussinesqPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2014, 09:13
Default on the equation solution sequence of buoyantBoussinesqPimpleFoam
  #1
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17
lin is on a distinguished road
The partial code of buoyantBoussinesqPimpleFoam is as follows:

while (pimple.loop())
{
#include "UEqn.H"
#include "TEqn.H"

// --- Pressure corrector loop
while (pimple.correct())
{
#include "pEqn.H"
}


At first the Ueqn is solved, the predicted velocity field is calculated. I think the Teqn should be placed after the pEqn is solved, when the real divergence free veolcity field calculation is finished, as the velocity field is used by the Teqn. This strategy is used in the wiki example:
http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Can any expert explain for me why TEqn is placed before the pEqn?
lin is offline   Reply With Quote

Old   September 29, 2014, 04:10
Default
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Hi

I'd say this depends on the point of view. When TEqn is solved after the momentum predictor step and before the pressure corrector loop, the old velocity field is used to solve for temperature. Hence, energy/temperature is the first quantity which is solved for and all temperature dependent thermophysical properties can be calculated and used in the pressure corrector loop. Solving for temperature after the pressure corrector would mean that all thermophysical properties depend on the old temperature field. This would be especially disadvantageous when it comes to free convection flows.
One way or the other, we have a sequential method for solving the system of equations and one will always depend on old values. Please correct me if I am wrong.

Cheers

Fabian
fabian_roesler is offline   Reply With Quote

Old   September 29, 2014, 05:25
Default
  #3
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17
lin is on a distinguished road
Thanks Fabian for your reply.
I think it is more reasonable to place Teqn after peqn. For the current strategy, placing Teqn before peqn, the additional terms in the predictor and corrector step are not consistent, as their values changes by the Teqn. Is this also advantageous?
lin 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
Some problem of "Qcriterion.mcr& yuyuxuan Tecplot 9 February 12, 2016 04:27
How to disable solution of an equation? Raijin Thunderkeg CFX 4 April 16, 2014 19:46
ERROR #001100279 - CFX 13 - transient run Zigainer CFX 14 December 9, 2011 14:22
Iterative solution to Poissons Equation Phiper Main CFD Forum 4 December 10, 2010 02:58
Analytical Solution of the equation Newbie Main CFD Forum 3 August 20, 2004 04:17


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