postProcess 输出ddt(U)和div(phi,U)
-
想在计算完成之后输出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(); #};