|
[Sponsors] |
Why is new convection theme used is the rhoEqn ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2014, 23:28 |
Why is new convection theme used is the rhoEqn ?
|
#1 |
New Member
BO
Join Date: Dec 2014
Posts: 21
Rep Power: 11 |
Hi Everyone,
While I am reading the code I got from my friend, I find following code: Code:
tmpPhi=phi; tmp<fv::convectionScheme<scalar> > mvConvection ( fv::convectionScheme<scalar>::New ( mesh, fields, tmpPhi, mesh.divScheme("div(phi,Yh)") ) ); //Density equation fvScalarMatrix rhoEqn ( fvm::ddt(rho) + mvConvection->fvmDiv(tmpPhi, rho) ); rhoEqn.solve(); Code:
turbulence->divDevRhoReff(rho, U) And latter, the new convection theme is used again as following: Code:
fvScalarMatrix YEqn ( fvm::ddt(rho,Y) + urho*mvConvection->fvmDiv(tmpPhi, Y) + fvm::laplacian(Dcoeff,Y) ); Code:
const dimensionedScalar urho //for tmpPhi = phi || rhoPhi ( "urho", dimensionSet(1,-3,0,0,0,0,0), scalar(1.0) ); Have anyone met this before? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation of Rayleigh-Benard convection | n0name | Main CFD Forum | 2 | April 27, 2014 13:49 |
Thermophysical properties for natural convection | Ciefdi | OpenFOAM Running, Solving & CFD | 0 | November 7, 2013 11:44 |
simulation problem -- convection BC | pras | FLUENT | 4 | January 30, 2013 10:41 |
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 | s.mishra | ANSYS | 0 | March 31, 2012 04:12 |
natural convection problem with radiation | jorien | CFX | 0 | October 14, 2011 09:26 |