OF并行报错未定义关键词PIMPLE



  • 在of2.3版本中,目前并行计算报错如下:

    [6] 
    [6] --> FOAM FATAL IO ERROR: 
    [6] keyword PIMPLE is undefined in dictionary "/project/zywang2/exp/processor6/system/fvSolution"
    [6] 
    [6] file: /project/zywang2/exp/processor6/system/fvSolution from line 0 to line 0.
    [6] 
    [6]     From function dictionary::subDict(const word& keyword) const[8] 
    

    感觉报错很奇怪,为什么会显示processor文件中的system未定义PIMPLE呢?

    理论上讲 在每一个processor里面应该没有system文件呀:zoule:

    fvSolution文件如下:

    solvers
    {
        alpha.water
        {
            nAlphaCorr      1;
            nAlphaSubCycles 1;
            cAlpha          1;
    
            MULESCorr       yes;
            nLimiterIter    5;
    
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-8;
            relTol          0;
            maxIter         100;
    
        }
    
         alpha.waterFinal
        {
            nAlphaCorr      1;
            nAlphaSubCycles 1;
            cAlpha          1;
    
            MULESCorr       yes;
            nLimiterIter    5;
    
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-8;
            relTol          0;
            maxIter         100;
    
        "U.*"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-6;
            relTol          0;
        };
    
        ".*(rho|rhoFinal)"
        {
            solver          diagonal;
        }
    
        pcorr
        {
            solver          PCG;
            preconditioner
            {
                preconditioner  GAMG;
                tolerance       1e-05;
                relTol          0;
                cacheAgglomeration true;
    			nCellsInCoarsestLevel 10;
    			nPreSweeps      0;
                nPostSweeps     2;
                nFinestSweeps   2;
    			agglomerator    faceAreaPair;
                smoother        DICGaussSeidel;
    			mergeLevels     1;
            }
            tolerance       1e-05;
            relTol          0;
    		agglomerator    faceAreaPair;
            maxIter         500;
        }
    	
        Phi
        {
            $p_rgh;
            relTol          0;
        };
    
        p_rgh
        {
            solver          GAMG;
            tolerance       1e-07;
            relTol          0.00001;
            smoother        DIC;
        }
    
        p_rghFinal
        {
            solver          PCG;
            preconditioner
            {
               preconditioner  GAMG;
    
                tolerance        1e-7;
                relTol           0;
    
                nVcycles         2;
    
                smoother         DICGaussSeidel;
                nPreSweeps       0;
                nPostSweeps      2;
                nFinestSweeps    2;
    
                cacheAgglomeration true;
                nCellsInCoarsestLevel 10;
                agglomerator     faceAreaPair;
                mergeLevels      1;
            }
            tolerance       1e-07;
            relTol          0;
            maxIter         1000;
        }
    
        U
        {
            solver          smoothSolver;
            smoother        GaussSeidel;
            tolerance       1e-06;
            relTol          0;
            nSweeps         1;
        }
    
        "(U|k|omega)"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-08;
            relTol          0.0001;
        }
    
        "(T|k|B|nuTilda).*"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-08;
            relTol          0;
            maxIter         100;
        }
        "(U|k|omega)Final"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-08;
            relTol          0;
        }
    }
    
    
    
    PIMPLE
    {
        momentumPredictor          no;
    	nOuterCorrectors 1;
        nCorrectors    3;
        nNonOrthogonalCorrectors 0;
    
    }
    

    请问有哪位朋友遇到过类似的问题呢??

    而且感觉从高版本里面可以运行的代码 放到 低版本里面运行,会出一堆很奇怪的问题。:zoule:



  • 不清楚,但是感觉是非常简单的文件设置问题

    OpenFOAM这面如果不是老手,强烈不建议代码算例混用。我记得你好像是拿到一个代码只能在openfoam 2.3上运行,我建议你移植到openfoam 7

    或者就只运行openfoam 2.3



  • 嗯嗯,好的,谢谢李老师指点:chitang:


Log in to reply
 

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