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. dynamicMeshDict设置问题

dynamicMeshDict设置问题

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

    计算过程中显示:

    --> FOAM Warning : 
        From function Foam::autoPtr<Foam::mapPolyMesh> Foam::dynamicRefineFvMesh::unrefine(const labelList&)
        in file dynamicRefineFvMesh/dynamicRefineFvMesh.C at line 546
        Cannot find surfaceScalarField ((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S) in user-provided flux mapping table 
    7
    (
    phi none
    rhoPhi none
    rhoPhiH none
    nHatf none
    alphaPhi10 none
    ghf none
    alphaPhi none
    )
        The flux mapping table is used to recreate the flux on newly created faces.
        Either add the entry if it is a flux or use (((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S) none) to suppress this warning.
    

    我在correctFluxes中加入

     (((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S) none) 
    

    但是结果显示格式不正确,有大佬遇到过相类似的情况吗?目前针对这块还不是很熟悉,请大家多多指教

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

    @sungda 这样可以吗

    ((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S) none
    

    你为什么会存在这个通量,自己写的求解器么

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

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

    @李东岳 李老师,这是我自己的求解器,但是这个通量我也不知道为什么会出来:136:
    我在dynamicMeshDict加了您说的这个,结果报错,可能是代码的问题。

    correctFluxes
    (
        (phi none)
        (rhoPhiH none)
        (nHatf none)
        (rhoPhi none)
        (alphaPhi none)
        (ghf none)
        (alphaPhi10 none)
        (phi_0 none)
        (((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S) none)
    );
    
    [0] --> FOAM FATAL IO ERROR: 
    [0] wrong token type - expected word, found on line 56 the punctuation token '('
    [0] 
    [0] file: /home/oufool/OpenFOAM/oufool-5.0/run/bubblecol/bubblecol9/constant/dynamicMeshDict.correctFluxes at line 56.
    [0] 
    [0]     From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&)
    [0]     in file primitives/strings/word/wordIO.C at line 74.
    [0] 
    FOAM parallel run exiting
    
    李东岳李 1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    在 中回复了 sungda 最后由 编辑
    #4

    @sungda

    ('((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S)' none)
    

    这样行么

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

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

    @李东岳 李老师,这样是可以的,

    ("((interpolate(grad(psi))|(mag(interpolate(grad(psi)))+(1e-06|dimChange)))&S)" none)
    
    
    1 条回复 最后回复

  • 登录

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