最新进展:我将0文件中的pd边界条件进行了修改,可以实现中断后继续运算,但原问题依旧不知该如何解决。
代码如下:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object pd; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { out { //type zeroGradient; type fixedValue; value $internalField; } "(sym1|sym2)" { type symmetryPlane; } in { //type fixedFluxPressure; //value $interField; type zeroGradient; } cylinder { //type fixedFluxPressure; //value $interField; type zeroGradient; } "(front|back)" { type empty; } } // ************************************************************************* //