CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Divergence (

aPostrophic February 20, 2011 08:37

Could anybody tell me what die fvm::div(phi,U) scheme is doing in OpenFoam?

Is div(-phi,U) the same as -div(phi,U) ?

akidess February 21, 2011 07:56

I suggest having a look at the Programmers Guide (P-38ff).

aPostrophic February 21, 2011 09:38

I read it already, but it does not help me.
According to the Programmers Guide -fvm::div(phi,U) und fvm::div(-phi,U)
should make no difference, but in my case it does.

eugene April 5, 2011 20:13

It depends on what convection scheme you are using. If it is symmetric (linear or harmonic) it shouldn't make a difference. If it is upwind or downwind biased, adding the minus will obviously switch the bias direction to the other cell bordering the face.

All times are GMT -4. The time now is 06:44.