偶然间发现OpenFOAM-6中,可以根据时间来选择计算时使用的文件(未测试),参考链接
例如,可以根据时间选用不同的fvSolution文件:
fileUpdate1
{
type timeActivatedFileUpdate;
libs ("libutilityFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
fileToUpdate "$FOAM_CASE/system/fvSolution";
timeVsFile
(
(-1 "$FOAM_CASE/system/fvSolution.0")
(0.10 "$FOAM_CASE/system/fvSolution.10")
(0.20 "$FOAM_CASE/system/fvSolution.20")
(0.35 "$FOAM_CASE/system/fvSolution.35")
);
}
也可以更新其它文件(未测试),参考链接
fileUpdate1 //substitute a file at a given instant
{
type timeActivatedFileUpdate;
libs ("libutilityFunctionObjects.so");
writeControl timeStep;
writeInterval 1;
fileToUpdate "$FOAM_CASE/constant/dynamicMeshDict"; //file to be substituted
timeVsFile
(
(-1 "$FOAM_CASE/constant/dynamicMeshDict.1") //substitution at t=0s
(0.3 "$FOAM_CASE/constant/dynamicMeshDict.2") //substituition at t=0.3s
);
}
-----------------------------------------------------------
本文来自博客园,作者:小厨房,转载请注明原文链接:https://www.cnblogs.com/erichf/p/13560187.html,否则视为侵权
如有疑问,请站内留言 或加 QQ:②⑨⓪②② ⑦③⑦⑨
-----------------------------------------------------------