Skip to content
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]
Skins
  • 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

  • Default (No Skin)
  • No Skin
Collapse
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. postProcess 输出ddt(U)和div(phi,U)

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

Scheduled Pinned Locked Moved OpenFOAM
4 Posts 3 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    veen
    wrote on last edited by
    #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 Reply Last reply
  • X Online
    X Online
    xpqiu 超神
    replied to veen on last edited by
    #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 Replies Last reply
  • V Offline
    V Offline
    veen
    replied to xpqiu on last edited by
    #3

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

    1 Reply Last reply
  • W Offline
    W Offline
    wsxfyy
    replied to xpqiu on last edited by 李东岳
    #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 Reply Last reply

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]