June 6, 2024, 06:43
|
Proper divScheme for solver system without fvm::laplacian()
|
#1
|
Member
Sereff
Join Date: Jan 2019
Posts: 51
Rep Power: 8
|
Hi FOAMers:
I am dealling with solving a fvScalarMatrix equation that is without fvm::laplacian() term, or have extremely low diffusivity. And this leads to "solution singularity" problem. On the other hand, change the fvScalarMatrix of TEqn in buoyanBoussinesqPimpleFoam to be without fvm::laplacian() term, the temperature field can be solved without any error. I chosed the same solver and divScheme for both of them, but the different result still remains. please help
fvSolution:
Code:
"(T|s)"
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-6;
relTol 1e-3;
}
"(T|s)Final"
{
$T;
relTol 0;
}
fvSchemes:
Code:
divSchemes
{
default Gauss linear;
div(phi,U) Gauss LUST grad(U);
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss linear;
div(phi,T) Gauss upwind;
div(phi,s) Gauss upwind;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}
|
|
|