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. 等比例放大模型和加密网格后程序跑不通

等比例放大模型和加密网格后程序跑不通

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

    好久不用openfoam了,问一个可能是手生引起的问题:我等比例放大一个集合模型后(2倍),又同时加密网格(2)倍,按理来说,网格大小跟原来算例的一样,可为什么跑到0.4s后就发散了?并且,时间步调整到非常小(用的是writeControl adjustableRunTime)是网格质量的问题(基本排除)还是程序设置(时间步设置成固定的1e-3也跑不动)的问题?增添细节:发散后流场某个位置会出现一个非常莫名其妙的极大值,但是这个位置的网格没有尖点或是扭曲。求教各位大神

    错误代码:
    Courant Number mean: 3.23333e+16 max: 6.60848e+21
    deltaT = 1.46123e-51
    --> FOAM Warning :
    From function Time::operator++()
    in file db/Time/Time.C at line 1055
    Increased the timePrecision from 13 to 14 to distinguish between timeNames at time 1.10972
    Time = 1.1097214228993

    Evolving kinematicCloud
    smoothSolver: Solving for Ux, Initial residual = 0.701011, Final residual = 9.69034e-06, No Iterations 94
    smoothSolver: Solving for Uy, Initial residual = 0.861352, Final residual = 9.45844e-06, No Iterations 90
    smoothSolver: Solving for Uz, Initial residual = 0.779098, Final residual = 9.84775e-06, No Iterations 21
    GAMG: Solving for p, Initial residual = 1, Final residual = 0.00756131, No Iterations 5
    time step continuity errors : sum local = 4.1672e-08, global = -2.23119e-12, cumulative = -6.04932e+10
    GAMG: Solving for p, Initial residual = 8.07324e-13, Final residual = 8.07324e-13, No Iterations 0
    time step continuity errors : sum local = 1.07325e+53, global = 6.39537e+36, cumulative = 6.39537e+36
    [1] #0 Foam::error::printStack(Foam::Ostream&)[0] #0 Foam::error::printStack(Foam::Ostream&) at ??:?
    [1] #1 Foam::sigFpe::sigHandler(int) at ??:?
    [0] #1 Foam::sigFpe::sigHandler(int) at ??:?
    [1] #2 at ??:?
    [0] #2 in "/lib/x86_64-linux-gnu/libc.so.6"
    [1] #3 Foam::multiply(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/lib/x86_64-linux-gnu/libc.so.6"
    [0] #3 Foam::multiply(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
    [1] #4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator*<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
    [0] #4 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator*<Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
    [1] #5 Foam::RASModels::kEpsilon<Foam::PhaseIncompressibleTurbulenceModelFoam::singlePhaseTransportModel >::correct() at ??:?
    [0] #5 Foam::RASModels::kEpsilon<Foam::PhaseIncompressibleTurbulenceModelFoam::singlePhaseTransportModel >::correct() at ??:?
    [0] #6 at ??:?

    1 条回复 最后回复
  • A 离线
    A 离线
    Amadeus 神
    写于 最后由 编辑
    #2
    此回复已被删除!
    1 条回复 最后回复
  • I 离线
    I 离线
    ice_flow
    写于 最后由 编辑
    #3

    建议先贴一下网格,发一下两组网格的checkMesh,检查是否符合想象。然后检查量纲,这个发散的太严重了。

    Y 1 条回复 最后回复
  • Y 离线
    Y 离线
    yuhxFoamer
    写于 最后由 编辑
    #4

    (放大两倍的模型)
    Create time

    Create polyMesh for time = 0

    Time = 0

    Mesh stats
    points: 2902677
    faces: 8492768
    internal faces: 8280352
    cells: 2795520
    faces per cell: 6
    boundary patches: 7
    point zones: 0
    face zones: 1
    cell zones: 2

    Overall number of cells of each type:
    hexahedra: 2795520
    prisms: 0
    wedges: 0
    pyramids: 0
    tet wedges: 0
    tetrahedra: 0
    polyhedra: 0

    Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

    Checking patch topology for multiply connected surfaces...
    Patch Faces Points Surface topology
    inlet 3040 3157 ok (non-closed singly connected)
    lowerWall 24160 24846 ok (non-closed singly connected)
    innerWall 69888 70797 ok (non-closed singly connected)
    outerWall 69888 70797 ok (non-closed singly connected)
    upperWall 32240 33087 ok (non-closed singly connected)
    outflow 4080 4223 ok (non-closed singly connected)
    snowBed 9120 9389 ok (non-closed singly connected)

    Checking geometry...
    Overall domain bounding box (-2.19998 -1.2 -1) (2.2 1.2 0)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (1.26117e-15 6.75462e-15 -2.66071e-16) OK.
    Max cell openness = 3.69512e-16 OK.
    Max aspect ratio = 3.2953 OK.
    Minimum face area = 5.55661e-05. Maximum face area = 0.00018708. Face area magnitudes OK.
    Min volume = 5.60807e-07. Max volume = 1.99623e-06. Total volume = 3.65304. Cell volumes OK.
    Mesh non-orthogonality Max: 59.6884 average: 18.0232
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 1.25424 OK.
    Coupled point location match (average 0) OK.

    Mesh OK.

    End
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    (原来一倍的模型)
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time

    Create polyMesh for time = 0

    Time = 0

    Mesh stats
    points: 376467
    faces: 1074872
    internal faces: 1021768
    cells: 349440
    faces per cell: 6
    boundary patches: 7
    point zones: 0
    face zones: 1
    cell zones: 2

    Overall number of cells of each type:
    hexahedra: 349440
    prisms: 0
    wedges: 0
    pyramids: 0
    tet wedges: 0
    tetrahedra: 0
    polyhedra: 0

    Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Number of regions: 1 (OK).

    Checking patch topology for multiply connected surfaces...
    Patch Faces Points Surface topology
    snowBed 2280 2415 ok (non-closed singly connected)
    outflow 1020 1092 ok (non-closed singly connected)
    upperWall 8060 8484 ok (non-closed singly connected)
    outerWall 17472 17927 ok (non-closed singly connected)
    innerWall 17472 17927 ok (non-closed singly connected)
    lowerWall 6040 6384 ok (non-closed singly connected)
    inlet 760 819 ok (non-closed singly connected)

    Checking geometry...
    Overall domain bounding box (-1.1 -0.6 -0.5) (1.1 0.6 0)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (4.76581e-16 1.4229e-16 -3.77148e-15) OK.
    Max cell openness = 3.18475e-16 OK.
    Max aspect ratio = 1.89439 OK.
    Minimum face area = 9.06159e-05. Maximum face area = 0.000205752. Face area magnitudes OK.
    Min volume = 9.19344e-07. Max volume = 2.03919e-06. Total volume = 0.45664. Cell volumes OK.
    Mesh non-orthogonality Max: 17.2092 average: 2.46502
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 0.392591 OK.
    Coupled point location match (average 0) OK.

    Mesh OK.

    End

    1 条回复 最后回复
  • Y 离线
    Y 离线
    yuhxFoamer
    在 中回复了 ice_flow 最后由 编辑
    #5

    @ice_flow 老师您好,检查网格的结果放在下面了,您说的检查量纲是什么?

    I 1 条回复 最后回复
  • I 离线
    I 离线
    ice_flow
    在 中回复了 yuhxFoamer 最后由 编辑
    #6

    @yuhxFoamer
    不是老师哈,我最近也在做网格验证,所以可以一起讨论下。
    1.最小网格尺寸看起来变化了,网格的质量好像也不一致,看起来不是结构网格。要考虑设置相同的计算参数。
    2.几何尺寸发生变化会导致雷诺数、参考面积这些的变化。我看你的计算域在三个方向上都发生了改变,检查一下基于这些几何参数的其他量是不是也相对需要改动。

    你可以按照这个方案来检查,首先在原本能够顺利计算的网格上直接加密,看看是否发散。然后使用缩放命令改变网格(不再加密)transformPoints -scale "( 2 2 1)",设置对应尺寸下的物理参数计算验证。一般来说没有很密的边界层的话可以这样调整,这样不行的话就进一步考虑离散方法和数值精度的调整,先用一阶的,再反复调整这样。

    1 条回复 最后回复

  • 登录

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