关于多相流的电势方程(Laplace方程)的求解问题
-
-
@东岳 openFoam-extend4.0,不好意思,我以为这个是通用的简写
-
@cfd_lilili 在 关于多相流的电势方程(Laplace方程)的求解问题 中说:
smoothSolver: Solving for phiE, Initial residual = 1, Final residual = 0.00666667, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.969654, Final residual = 0.955898, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999906, Final residual = 0.999906, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999943, Final residual = 0.999943, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999959, Final residual = 0.999959, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.99997, Final residual = 0.99997, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999977, Final residual = 0.999977, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999982, Final residual = 0.999982, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999986, Final residual = 0.999986, No Iterations 1000
smoothSolver: Solving for phiE, Initial residual = 0.999989, Final residual = 0.999989, No Iterations 1000你在求解一个方程求解多次。另外,迭代次数1000,没有收敛,
这是一个非常简单的方程,你需要更细心的debug
-
@东岳 谢谢老师
我把代码换了写法,问题就解决了
这是原来的写法fvScalarMatrix phiEEqn ( fvm::laplacian( phiE ) ); phiEEqn.relax(); solve(phiEEqn);
把它简单地写为
solve( fvm::laplacian(sigmaE, phiE) );
问题勉强算解决了,但还不知道之前的问题出在哪。