|
[Sponsors] |
fvc::flux(a,b,scheme) and -fvc::flux(-a,b,scheme) 's difference |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 24, 2015, 06:29 |
fvc::flux(a,b,scheme) and -fvc::flux(-a,b,scheme) 's difference
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
Hi guys,
In twoPhaseEulerFoam's alpha code. we have: Code:
surfaceScalarField alphaPhic1 ( fvc::flux ( phic, alpha1, alphaScheme ) + fvc::flux ( -fvc::flux(-phir, scalar(1) - alpha1, alpharScheme), alpha1, alpharScheme ) ); Code:
surfaceScalarField alphaPhic1 ( fvc::flux ( phic, alpha1, alphaScheme ) + fvc::flux ( fvc::flux(phir, scalar(1) - alpha1, alpharScheme), //no minus minus here! alpha1, alpharScheme ) ); Thanks guys!!! |
|
April 24, 2015, 06:51 |
|
#2 |
New Member
Martin S.
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
It may be the same for some schemes.
At least for upwind schemes -flux(-phi)!=flux(phi). |
|
April 24, 2015, 08:04 |
|
#3 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
rho in fvc::flux | santiagomarquezd | OpenFOAM Running, Solving & CFD | 0 | February 29, 2012 14:31 |
flux limiter involving tensor : How to use fvc::flux() with volTensorField ? | Cyp | OpenFOAM Programming & Development | 2 | January 21, 2011 05:36 |