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. 新编译的湍流模型求解算例的时候epsilon方程发散

新编译的湍流模型求解算例的时候epsilon方程发散

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

    模型方程如下:
    QQ截图20200920203405.png
    我写的代码如下:

    volScalarField G("RASModel::G", mut_*(gradU && dev(twoSymm(gradU))));
    
        volScalarField E = Ceps3_*(scalar(1)-fw_)*mu()*(mut_/rho_)*fvc::magSqrGradGrad(U_);//新增
        const volScalarField T(Ts());//新增
    
        // Update epsilon and G at the wall
        epsilon_.boundaryField().updateCoeffs();
    
        // Dissipation equation
        tmp<fvScalarMatrix> epsEqn
        (
            fvm::ddt(rho_, epsilon_)
          + fvm::div(phi_, epsilon_)
          - fvm::laplacian(DepsilonEff(), epsilon_)
         ==
            Ceps1_*G/T//C1_*G*epsilon_/k_
          - fvm::SuSp((2.0/3.0)*Ceps1_*rho_*divU/T, k_)//- fvm::SuSp(((2.0/3.0)*C1_ + C3_)*rho_*divU, epsilon_)
          - Ceps2_*rho_*f2()*epsilon_/T//fvm::Sp(Ceps2_*rho_*f2()/T, epsilon_)
          - E
        );
    
        epsEqn().relax();
    
        // No longer needed: matrix completes at the point of solution
        // HJ, 17/Apr/2012
    //     epsEqn().completeAssembly();
    
        solve(epsEqn);
        bound(epsilon_, epsilon0_);
    

    报错如下:

    pEqn.H is ok
    min(p) [1 -1 -2 0 0 0 0] 3.99999e+06	max(p) [1 -1 -2 0 0 0 0] 4.15888e+06
    piso is ok
    BiCGStab:  Solving for fw, Initial residual = 1, Final residual = 0.000964975, No Iterations 69
    new cannot satisfy memory request.
    This does not necessarily mean you have run out of virtual memory.
    It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
    已放弃 (核心已转储)
    

    麻烦大家看一下epsilon方程或者别的什么地方出现了问题

    1 条回复 最后回复
  • 李东岳李 离线
    李东岳李 离线
    李东岳 管理员
    写于 最后由 编辑
    #2
    new cannot satisfy memory request.
    This does not necessarily mean you have run out of virtual memory.
    It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
    

    重新编译一下求解器试试?

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

    strive_DUTS 1 条回复 最后回复
  • strive_DUTS 离线
    strive_DUTS 离线
    strive_DUT
    在 中回复了 李东岳 最后由 编辑
    #3

    @东岳 我重新编译试过了,还是这个问题呢

    1 条回复 最后回复

  • 登录

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