- **OpenFOAM Programming & Development**
(*https://www.cfd-online.com/Forums/openfoam-programming-development/*)

- - **Anisotropic, implicit momentum source term**
(*https://www.cfd-online.com/Forums/openfoam-programming-development/119168-anisotropic-implicit-momentum-source-term.html*)

Anisotropic, implicit momentum source termHi 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? Chris |

Hi Chris,
Have a look at the implementation of the porous media source term. I think this is what you are looking for. Cheers, Lieven |

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? |

Did anyone find a way to program an implicit anisotropic source???Hello y'all,
I have the same problem: how to program an anisotropic implicit source in the momentum equation? fvm::Sp simply does not accept a tensor as coefficient (fvm::Sp(tensor,vector) does not seem to be implemented). Did anyone find a way? Thanks |

All times are GMT -4. The time now is 10:50. |