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

How to correctly discretize terms with many factors

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2014, 07:53
Default How to correctly discretize terms with many factors
  #1
New Member
 
Kasper Linnestad
Join Date: Jun 2014
Posts: 8
Rep Power: 3
kasper1301 is on a distinguished road
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
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?

Kasper
kasper1301 is offline   Reply With Quote

Reply

Tags
discretization, equation, fvc, fvm, twophaseeulerfoam

Thread Tools
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 On
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 17:02
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 04:22


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