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. postProcess 输出ddt(U)和div(phi,U)

postProcess 输出ddt(U)和div(phi,U)

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

    想在计算完成之后输出ddt(U)和div(phi,U)
    直接运行postProcess -func 'ddt(U)', 提示ddt is not supported with the postProcess utility FOAM Warning : functionObjects::ddt ddt(U) failed to execute.
    运行pisoFoam -postProcess -func 'ddt(U)' 提示in command line pisoFoam -postProcess -func div(phi,U) Placeholder value is <fieldName>
    想用coded输出也一直没成功,因为已经有计算结果了,不想动求解器:

    libs    ("libutilityFunctionObjects.so");
    type    coded;
    name    ddt;
    codeWrite
    #{
    
    const volVectorField& U = mesh().lookupObject<volVectorField>("U");
    //const volScalarField& phi = mesh().lookupObject<volScalarField>("phi");
    
    // Write
    volVectorField ddt("ddt", fvc::ddt(U));
    ddt.write();
    
    #};
    
    X 1 条回复 最后回复
  • X 在线
    X 在线
    xpqiu 超神
    在 中回复了 veen 最后由 编辑
    #2

    @veen
    pisoFoam -postProcess -func 'ddt(U)' 这个是可以用的,但是
    pisoFoam -postProcess -func 'div(phi,U)' 不行,因为 div 只能接受一个参数
    pisoFoam -postProcess -func 'div(U)' 这样是可以的。
    如果你需要算 'div(phi,U)' ,需要自己写一个 functionObject。可以参考这个来写:src/functionObjects/field/momentumError

    V W 2 条回复 最后回复
  • V 离线
    V 离线
    veen
    在 中回复了 xpqiu 最后由 编辑
    #3

    @xpqiu u 好的,感谢!:146:

    1 条回复 最后回复
  • W 离线
    W 离线
    wsxfyy
    在 中回复了 xpqiu 最后由 李东岳 编辑
    #4

    @xpqiu 在 postProcess 输出ddt(U)和div(phi,U) 中说:

    pisoFoam -postProcess -func 'ddt(U)' 这个是可以用的,

    但是关于这个,我输入还是会报错 ddt is not supported with the postProcess utility FOAM Warning : functionObjects::ddt ddt(U) failed to execute.
    所以请问一下这个是什么问题呢?

    1 条回复 最后回复

  • 登录

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