Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 计算报错未定义关键词PIMPLE

计算报错未定义关键词PIMPLE

已定时 已固定 已锁定 已移动 OpenFOAM
4 帖子 3 发布者 3.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 小 离线
    小 离线
    小考拉
    写于 最后由 编辑
    #1

    各位朋友新年好!

    最近想在of2.3版本上跑一个空化case,用的LES一方程涡粘模型,以前这个case在6.0版本运行没有问题,但在2.3上报错如下:

    --> FOAM FATAL IO ERROR: 
    
    keyword PIMPLE is undefined in dictionary "/project/ll/new/system/fvSolution"
    
    file: /project/ll/new/system/fvSolution from line 20 to line 133.
    
        From function dictionary::subDict(const word& keyword) const
        in file db/dictionary/dictionary.C at line 643.
    
    FOAM exiting
    

    自己对照着of2.3的tutorials中的case修改了好久,也不知道哪里出了问题,,,: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;
        };
    
        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;
            maxIter         500;
        }
    	
    
        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|k)"
        {
            solver          smoothSolver;
            smoother        GaussSeidel;
            tolerance       1e-08;
            relTol          0.1;
        }
    
    
        }
        "(U|k)Final"
        {
            solver          smoothSolver;
            smoother        GaussSeidel;
            tolerance       1e-08;
            relTol          0;
        }
    }
    
    PIMPLE
    {
        momentumPredictor no;
        nCorrectors     2;
        nNonOrthogonalCorrectors 1;
    }
    

    哪位朋友可以给我提供点解决思路呢??

    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #2

    这只是一个非常简单的设置问题,我觉得你已经处理好了

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    1 条回复 最后回复
  • 小 离线
    小 离线
    小考拉
    写于 最后由 编辑
    #3

    是的,已经解决。

    解决方法是 直接拷贝一个低版本(我用的2.3版本)tutorials里面case的 fvSolution文件,以这个文件为基础模板,进行相应的修改(即把高版本的代码 对应的替换过来)

    我分析我以前犯的错误应该是一些格式性的问题,以后还是不要乱用为好!

    最后给大家分享一下,我修改的在of2.3里面可以运行的fvSolution文件代码

    /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
    |  \\    /   O peration     | Version:  2.3.0                                 |
    |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        object      fvSolution;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    solvers
    {
        
        alpha.water
        {
            cAlpha          1;
            nAlphaCorr      1;
            nAlphaSubCycles 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;
        };
    
    
    
        "pcorr.*"
    	{
         solver          PCG;
            preconditioner
            {
               preconditioner  GAMG;
               tolerance       1e-05;
               relTol          0;
               cacheAgglomeration no;
    		   nCellsInCoarsestLevel 10;
    		  // nPreSweeps      0;
              // nPostSweeps     2;
              // nFinestSweeps   2;
    		   agglomerator    faceAreaPair;
               smoother        DICGaussSeidel;
    		   mergeLevels     1;
    
            }
            tolerance       1e-05;
            relTol          0;
    		agglomerator    faceAreaPair;
            maxIter         1000;
        }
    
    	 Phi
        {
            $p_rgh;
            relTol          0;
        };
    
        p_rgh
        {
            //solver          GAMG;
            //tolerance       1e-7;
            //relTol          0.00001;
    		//smoother        DIC;
    
    		solver           GAMG;
            tolerance        1e-7;
            relTol           0.00001;
    
            smoother         DICGaussSeidel;
            nPreSweeps       0;
            nPostSweeps      2;
    
            cacheAgglomeration true;
    
            nCellsInCoarsestLevel 10;
            agglomerator     faceAreaPair;
            mergeLevels      1;
    
            maxIter          100;
            minIter		 5;
        }
    
        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|nuSgs)"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-8;
            relTol          0.1;
            minIter         1;
    		maxIter         100;
        }
    
        "(U|k|nuSgs)Final"
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-08;
            relTol          0;
        }
    }
    
    PIMPLE
    {
        correctPhi          yes;
        nOuterCorrectors    1;
        nCorrectors         3;
        nNonOrthogonalCorrectors 0;
    	momentumPredictor          no;
    }
    
    桎 1 条回复 最后回复
  • 桎 离线
    桎 离线
    桎梏
    在 中回复了 小考拉 最后由 编辑
    #4

    @小考拉 这个不错。之前用230版本的gamg一直报错,有了 cacheAgglomeration这些关键词,终于跑通了

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]