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. foam-extend-4.0 动网格未按照预期进行强迫运动

foam-extend-4.0 动网格未按照预期进行强迫运动

已定时 已固定 已锁定 已移动 OpenFOAM
12 帖子 2 发布者 2.7k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • G 离线
    G 离线
    Gunther
    写于2024年11月11日 16:19 最后由 编辑
    #1

    左侧为入口,右侧为出口;前一个圆柱在y方向做正弦运动,后一个圆柱固定。

    计算域.png

    dynamicMeshDict代码如下:

    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dynamicFvMesh      dynamicMotionSolverFvMesh;
    
    motionSolverLibs ("libfvMotionSolver.so");
    
    solver            displacementLaplacian;
    //solver            velocityLaplacian;
    
    diffusivity       inverseDistance (cylinder1);
    
    // ************************************************************************* //
    

    0/pointDisplacement代码如下:

    dimensions      [0 1 0 0 0 0 0];
    
    internalField   uniform (0 0 0);
    
    boundaryField
    {
        frontAndBack
        {
            type            empty;
        }
        cylinder2
        {
             type            fixedValue;
             value           uniform (0 0 0);
        }
        cylinder1
        {
            type            oscillatingDisplacement;
            amplitude		(0 -1 0);
            omega			3.14; 
            value           uniform (0 0 0);
        }
        topAndBottom
        {
             type            symmetryPlane;
        }
        outlet
        {
             type            fixedValue;
             value           uniform (0 0 0);
        }
        inlet
        {
             type            fixedValue;
             value           uniform (0 0 0);      
        }
    }
    

    0/U代码如下:

    dimensions      [0 1 -1 0 0 0 0];
    
    internalField   uniform (1 0 0);
    
    boundaryField
    {
        frontAndBack
        {
            type            empty;
        }
        cylinder2
        {
            type            fixedValue;
            value           uniform (0 0 0); 
        }
        cylinder1
        {
            type            movingWallVelocity;
            value           uniform (0 0 0);
        }
        topAndBottom
        {
            type            symmetryPlane;
        }
        outlet
        {
            type            zeroGradient;
        }
        inlet
        {
            type            fixedValue;
            value           uniform (1 0 0);        
        }
    }
    

    现在出现的问题是,圆柱根本不动,以下是终端的输出结果:

    Volume: new = 19.8431 old = 19.8431 change = 0 ratio = 0
    Courant Number mean: 0.00403834 max: 0.0257354 velocity magnitude: 1.3391
    Time = 3.052
    
    GAMG:  Solving for cellDisplacementx, Initial residual = 0, Final residual = 0, No Iterations 0
    GAMG:  Solving for cellDisplacementy, Initial residual = 9.0384e-06, Final residual = 9.0384e-06, No Iterations 0
    volume continuity errors : volume = 19.8431, max error = 2.21646e-12, sum local = 2.26977e-19, global = -4.50435e-20
    BiCGStab:  Solving for Ux, Initial residual = 3.66548e-05, Final residual = 6.20396e-14, No Iterations 1
    BiCGStab:  Solving for Uy, Initial residual = 0.000136469, Final residual = 3.21293e-13, No Iterations 1
    DICPCG:  Solving for p, Initial residual = 0.000114889, Final residual = 5.46747e-06, No Iterations 10
    time step continuity errors : sum local = 1.36508e-11, global = 4.94412e-13, cumulative = 1.47017e-06
    DICPCG:  Solving for p, Initial residual = 9.3308e-06, Final residual = 9.74749e-07, No Iterations 18
    time step continuity errors : sum local = 2.43382e-12, global = 4.80079e-13, cumulative = 1.47017e-06
    ExecutionTime = 149.77 s  ClockTime = 149 s
    

    麻烦各位大佬支支招!提前拜谢!

    1 条回复 最后回复
  • G 离线
    G 离线
    Gunther
    写于2024年11月11日 16:28 最后由 编辑
    #2

    在cfd-online找到相关的问题,说是程序安装的事,但是我改用dyfluid的虚拟机运行此算例,圆柱依旧无法运动。但是我确实看不出来哪里设置出现问题。

    Dear Foamers,
    
    I am trying to run the default wingMotion tutorial using sixDoFRigidBodyDisplacement in foam-extend 4.0. 
    However, it seems to me that the body is only moving at the very first time step and then all motion ends. 
    There is also no output regarding information about restraints, centre of mass etc. in the log file. 
    I ran the tutorial in OpenFOAM 5.0 without a problem but can not get it to run in foam-extend 4.0.
    
    Any ideas? Thanks in advance.
    
    After some more tries I found that pimpleDyMFoam only moves the body at the first time step and then all movement is stopped. 
    This is the same for sixDoFRigidBodyDisplacement or oscillatingDisplacement.
    
    edit: I somehow messed the installation up. pimpleFoam worked excellent so I did not consider this first but after reinstallation the problem ist solved.
    

    ps:我同时运行了教程自带的wingMotion sixDoFRigidBodyDisplacement算例,机翼也未发生运动。

    1 条回复 最后回复
  • 李 在线
    李 在线
    李东岳 管理员
    写于2024年11月11日 17:23 最后由 编辑
    #3

    我同时运行了教程自带的wingMotion sixDoFRigidBodyDisplacement算例,机翼也未发生运动。

    我的虚拟机的什么版本的自带算例?

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

    G 1 条回复 最后回复 2024年11月11日 17:24
  • G 离线
    G 离线
    Gunther
    在 2024年11月11日 17:24 中回复了 李东岳 最后由 编辑
    #4

    @李东岳 李老师您好!我说的是虚拟机fe40自带的tutorial,我运行后发现还是有问题。网格不动。

    1 条回复 最后回复
  • 李 在线
    李 在线
    李东岳 管理员
    写于2024年11月11日 17:57 最后由 编辑
    #5

    你在别的机器上测试过没有,动么

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

    G 1 条回复 最后回复 2024年11月11日 22:26
  • G 离线
    G 离线
    Gunther
    在 2024年11月11日 22:26 中回复了 李东岳 最后由 编辑
    #6

    @李东岳 目前还没有在别的机器测试过,主要不确定是自己代码的原因还是向cfd-online所说是软件安装的问题。
    麻烦您方便的时候看一下我贴出的代码有问题么,感谢感谢!我去找其他机器看看能不能动。

    G 1 条回复 最后回复 2024年11月11日 22:33
  • G 离线
    G 离线
    Gunther
    在 2024年11月11日 22:33 中回复了 Gunther 最后由 编辑
    #7

    @Gunther 在 foam-extend-4.0 动网格未按照预期进行强迫运动 中说:

    @李东岳 目前还没有在别的机器测试过,主要不确定是自己代码的原因还是向cfd-online所说是软件安装的问题。
    麻烦您方便的时候看一下我贴出的代码有问题么,感谢感谢!我去找其他机器看看能不能动。

    我换到其他机器也不能动,终端输出结果与贴出内容相同。

    1 条回复 最后回复
  • G 离线
    G 离线
    Gunther
    写于2024年11月11日 22:59 最后由 编辑
    #8

    如图所示,第一个时间步网格会出现些许运动,之后就停止了。

    8f38e61f-bf10-496a-afe1-f85f97c81bb6-image.png

    1 条回复 最后回复
  • 李 在线
    李 在线
    李东岳 管理员
    写于2024年11月12日 06:44 最后由 编辑
    #9

    我以为我那个虚拟机的有bug。
    看起来这个是foam-extend的bug。源代码的bug了。
    .org版本不能实现这个么?

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

    G 1 条回复 最后回复 2024年11月12日 10:14
  • G 离线
    G 离线
    Gunther
    在 2024年11月12日 10:14 中回复了 李东岳 最后由 编辑
    #10

    @李东岳 我要用到基于fe40的fsiFoam。这么说我的代码没有问题么?

    1 条回复 最后回复
  • 李 在线
    李 在线
    李东岳 管理员
    写于2024年11月12日 13:00 最后由 编辑
    #11

    没问题

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

    G 1 条回复 最后回复 2024年11月12日 14:01
  • G 离线
    G 离线
    Gunther
    在 2024年11月12日 14:01 中回复了 李东岳 最后由 编辑
    #12

    @李东岳 麻了,哭。。。我多么希望是我自己的问题

    1 条回复 最后回复
2024年11月11日 16:19

3/12

2024年11月11日 17:23

未读 9
2024年11月12日 14:01
  • 登录

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