CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to correctly discretize terms with many factors

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2014, 07:53
Default How to correctly discretize terms with many factors
New Member
Kasper Linnestad
Join Date: Jun 2014
Posts: 8
Rep Power: 12
kasper1301 is on a distinguished road

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

fvm::ddt(rhoAlpha1, Yi)
 + fvm:div(rhoAlphaPhi1, Yi)
 - fvm::laplacian(turbulence->muEff(), Yi)
The alternative would be to apply the product rule of differentation and use the fvc schemes.

Does anyone know of any pros or cons with these approaches, maybe there exists other approaches that are better?

kasper1301 is offline   Reply With Quote


discretization, equation, fvc, fvm, twophaseeulerfoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Using source terms jsm Main CFD Forum 4 August 20, 2009 06:44
Source Terms in Momentum Balance vidyaraja Main CFD Forum 0 May 25, 2009 15:24
Source Terms in momentum Balance vidyaraja FLUENT 0 May 25, 2009 13:16
Question in definition of terms in solve titio OpenFOAM Running, Solving & CFD 0 March 19, 2009 16:02
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 04:22

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