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. snappyHexMesh画网格

snappyHexMesh画网格

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

    使用snappyHexMesh画网格时,画出网格时没有什么问题但是在计算的时候会报错。有没有大佬知道这种情况该怎么解决

    FOAM Warning : 
        From void Foam::cutFaceAdvect::cutPoints(Foam::label, Foam::scalar, Foam::DynamicList<Foam::Vector<double> >&)
        in file cellCuts/cutFace/cutFaceAdvect.C at line 927
        cutPoints = 4((0 0.0449362922089 0.385062422146) (0 0.0436853188202 0.385062441697) (0.01 0.0436853188202 0.385062441697) (0.01 0.0449362922089 0.385062422146)) for pts = 4((0 0.0449362922089 0.385062422146) (0 0.0436853188202 0.385062441697) (0.01 0.0436853188202 0.385062441697) (0.01 0.0449362922089 0.385062422146)), f - f0 = 4(23405 23403 38935 38937) and f0 = 2.22618323362e-13
    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #2

    这是个warning。看起来好像是isoAdvector那面的算法?这个算法我不是太熟悉。回答也是乏力了。:135:

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

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

    @李东岳 谢谢东岳老师,这个我用interFoam也会报错,应该是snappyHexMesh切分网格的时候产生的问题。

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

    interFoam不需要cutFaceAdvect.C,你interFoam用的界面压缩的格式么?

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

    H 1 条回复 最后回复
  • H 离线
    H 离线
    HIT_lly
    在 中回复了 李东岳 最后由 李东岳 编辑
    #5

    @李东岳 东岳老师,上面那个报错是因为使用了isoAdvector算法。
    使用interFoam进行计算也会进行报错,报错是这样的

    FOAM Warning : 
        From Foam::triFace Foam::tetIndices::faceTriIs(const Foam::polyMesh&, bool) const
        in file meshes/polyMesh/polyMeshTetDecomposition/tetIndicesI.H at line 70
        No base point for face 7847, 4(5577 25968 25969 5578), produces a valid tet decomposition.
    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #6

    你的interfoam的fvScheme怎么设置的

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

    H 1 条回复 最后回复
  • H 离线
    H 离线
    HIT_lly
    写于 最后由 编辑
    #7
    /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
    |  \\    /   O peration     | Version:  v2312                                 |
    |   \\  /    A nd           | Website:  www.openfoam.com                      |
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        object      fvSchemes;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    ddtSchemes
    {
        default         Euler;
    }
    
    gradSchemes
    {
        default         Gauss linear;
    }
    
    divSchemes
    {
    default         Gauss upwind;
        div(rhoPhi,U)   Gauss upwind;
        div(U)          Gauss linear;
        div(phi,alpha)  Gauss vanLeer;
        div(phirb,alpha) Gauss linear;
         div(phi,thermo:rho.water) Gauss upwind;
        div(phi,thermo:rho.air) Gauss upwind;
        div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
           div(rhoPhi,T)  Gauss upwind;
        div(rhoPhi,K)  Gauss upwind;
    
            div(phi,p)      Gauss upwind;
        div(phi,epsilon) Gauss upwind;
        div(phi,omega) Gauss upwind;
        div(phi,U)      Gauss linearUpwind limited;
    
        energy          Gauss linearUpwind limited;
        div(phi,e)      $energy;
        div(phi,K)      $energy;
        div(phi,Ekp)    $energy;
    
        turbulence      Gauss linearUpwind limited;
        div(phi,k)      $turbulence;
        div(phi,omega)  $turbulence;
        div(rhoPhi,omega)  $turbulence;
    div(rhoPhi,k)  $turbulence;
    
    
        div(phiv,p)     Gauss upwind;
        div((phi|interpolate(rho)),p) Gauss upwind;
    
    }
    
    laplacianSchemes
    {
        default         Gauss linear corrected;
    }
    
    interpolationSchemes
    {
        default         linear;
    }
    
    snGradSchemes
    {
        default         corrected;
    }
    
    wallDist
    {
        method          meshWave;
    }
    oversetInterpolation
    {
        method              inverseDistance;
        holeLayers          6;
        useLayer            3;
    }
    
    oversetInterpolationSuppressed
    {
        grad(p_rgh);
        surfaceIntegrate(phiHbyA);
    }
    
    fluxRequired
    {
        default         no;
        p_rgh;
        pcorr;
        alpha.water;
    }
    
    
    // ************************************************************************* //
    
    
    1 条回复 最后回复
  • H 离线
    H 离线
    HIT_lly
    在 中回复了 李东岳 最后由 编辑
    #8

    @李东岳 感谢东岳老师的回复,我的fvScheme是这样设置的,这用的是重叠网格技术。开始的isoadvector是我耦合的重叠网格算法,然后后面的compressibleinterFoam是openfoam 中自带的算法。

    1 条回复 最后回复
  • H 离线
    H 离线
    HIT_lly
    写于 最后由 编辑
    #9

    之前snappyHexMesh画的3D网格进行重叠网格计算没有问题。后来为了节省计算成本用的2D网格,用的snappyHexMesh画的网格,然后使用extrudeMesh将3D网格变成2D网格后就出现问题了

    1 条回复 最后回复

  • 登录

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