|
[Sponsors] | |||||
How to correctly discretize terms with many factors |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Kasper Linnestad
Join Date: Jun 2014
Posts: 8
Rep Power: 13 ![]() |
Hi,
I am trying to implement an equation for chemical components in twoPhaseEulerFoam and I am wondering how to discretize each term in OpenFOAM. The transport equation: ![]() I was thinking that I could create some new fields, such as rhoAlpha and rhoAlphaPhi (alphaPhi already exists), and implement the equation as following Code:
fvm::ddt(rhoAlpha1, Yi) + fvm:div(rhoAlphaPhi1, Yi) - fvm::laplacian(turbulence->muEff(), Yi) == 0 Does anyone know of any pros or cons with these approaches, maybe there exists other approaches that are better? Kasper |
|
|
|
|
|
![]() |
| Tags |
| discretization, equation, fvc, fvm, twophaseeulerfoam |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using source terms | jsm | Main CFD Forum | 4 | August 20, 2009 07:44 |
| Source Terms in Momentum Balance | vidyaraja | Main CFD Forum | 0 | May 25, 2009 16:24 |
| Source Terms in momentum Balance | vidyaraja | FLUENT | 0 | May 25, 2009 14:16 |
| Question in definition of terms in solve | titio | OpenFOAM Running, Solving & CFD | 0 | March 19, 2009 17:02 |
| K-Epsilon model? | Brindaban Ghosh | Main CFD Forum | 2 | June 24, 2000 05:22 |