未知非对称矩阵求解器



  • 大家好,我最近在用interFoam运行算例的时候,出现以下错误
    99dbbd3c-f48f-4213-9c8c-8aa03f925e3a-image.png
    把求解器换成GAMG也是提示类似的错误
    0d6c1d7f-702c-47b7-be99-4211f05ee39e-image.png
    有人能帮忙解答下么,万分感谢。



  • 贴一下你的fvSolution


  • OpenFOAM教授

    @人来人往 是不是分号写成全角的了?



  • @Samuel-Tu 714abaa9-c97e-4c4a-adc4-c752cf245c6f-image.png
    d6386845-a92b-4779-b67f-4a013fb086e7-image.png
    b354324d-2f46-4d62-9234-c06c97ba7d71-image.png
    这是求解器设置,麻烦帮忙看下吧。



  • @wwzhao 我又检查了一遍,应该是没错的。



  • @人来人往 relaxationFactors实在PIMPLE下面的,稍稍调整一下,另外删除一些没必要的东西,GAMG不需要preconditioner。
    具体上网找找每个求解器的定义吧,都需要什么,什么是default的,到底哪个参数需要修改

    GAMG	generalised geometric-algebraic multi-grid.
    {	
    	solver          		GAMG;
        tolerance       		1e-07;
        relTol         		 	0;
        cacheAgglomeration 		true;			switch specifying caching of the agglomeration strategy (default true).
        nCellsInCoarsestLevel 	2;				approximate mesh size at the most coarse level in terms of the number of cells (default 10).
    	directSolveCoarset		false			use a direct solver at the coarsest level (default false).
        agglomerator    		faceAreaPair;
        mergeLevels     		2;				keyword controls the speed at which coarsening or refinement is performed. simple mesh use 2
    	preSweepsLevelMultiplier				multiplier for the the number of sweeps between each coarsening level (default 1).
    	maxPreSweeps							maximum number of sweeps as the algorithm is coarsening (default 4).
    	nPostSweeps 							number of sweeps as the algorithm is refining (default 2).
    	postSweepsLevelMultiplier 				multiplier for the the number of sweeps between each refinement level (default 1).
    	maxPostSweeps 							maximum number of sweeps as the algorithm is refining (default 4).
    	nFinestSweeps 							number of sweeps at finest level (default 2).
    
    	smoother        		DILUGaussSeidel;
    	nPreSweeps      		0;				number of sweeps as the algorithm is coarsening (default 0).
    	nPostSweeps     		2;
    	minIter					1;
    }
    
    

Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2