|
[Sponsors] |
October 14, 2014, 08:55 |
fvc::div() instead of fvc::flux()?
|
#1 |
New Member
Join Date: Sep 2014
Posts: 15
Rep Power: 12 |
Hi!
Could anybody tell me, is there any difference between using these two solver's codes? Can I use the first code instead of the second code and vice versa? (Personally I think they have the same result): So, the first code: Code:
surfaceScalarField phi ("phi", A); surfaceScalarField phiflux = fvc::flux(phi, B, "div(phi,B)"); fvScalarMatrix sEqn ( fvm::ddt(s) + fvc::div(phiflux) ); sEqn.solve(); Code:
surfaceScalarField phi ("phi", A); fvScalarMatrix sEqn ( fvm::ddt(s) + fvc::div(phi, B, "div(phi,B)") ); sEqn.solve(); |
|
December 23, 2014, 12:11 |
|
#2 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
The reason to use fvc::flux() MIGHT be to use flux limiter scheme. such as vanleer~
http://www.cfd-online.com/Forums/ope...interfoam.html |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fvc::div for surfaceVectorField | ARTem | OpenFOAM Programming & Development | 4 | November 2, 2018 13:41 |
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 |
fvc::div() strange behaviour | ivan_cozza | OpenFOAM Running, Solving & CFD | 2 | February 6, 2010 07:09 |
What type return fvcdiv | su_junwei | OpenFOAM Running, Solving & CFD | 6 | October 13, 2008 08:09 |