CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Anisotropic, implicit momentum source term (

chris_j_meyer June 11, 2013 06:58

Anisotropic, implicit momentum source term
Hi All

Will not bore you with the details, but I am adding a momentum source term that is anisotropic. To do this explicitly is quite easy as a volVectorField with the sources can just be added to the U-equation. For an implicit formulation the following can be used and added to the U-equation:

fvm::Sp(a, U)

However, "a" can at best be a volScalarField and hence the source will be locally isotropic. Is there any way in which I can add different implicit source terms to the momentum equations in the three coordinate directions?


Lieven June 11, 2013 10:56

Hi Chris,

Have a look at the implementation of the porous media source term. I think this is what you are looking for.



ski July 18, 2013 18:42

I'd like to do this too..

Issue is that it appears to be using Jacobi method to solve, which tends to give poor convergence rates. Anyone have any experience on this?

All times are GMT -4. The time now is 19:57.