运行出错..有知道的吗



  • MULES: Solving for alpha.fuel
    Liquid phase volume fraction = 0.78646411  Min(alpha.fuel) = 0  Min(alpha.vapor) = 0
    diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
    smoothSolver:  Solving for T, Initial residual = 0.0043509939, Final residual = 5.4162916e-12, No Iterations 2
    #0  Foam::error::printStack(Foam::Ostream&) at ??:?
    #1  Foam::sigFpe::sigHandler(int) at ??:?
    #2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
    #3  Foam::PengRobinsonGas<Foam::specie>::Z(double, double) const at ??:?
    #4  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::hConstThermo<Foam::PengRobinsonGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:?
    #5  Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::hConstThermo<Foam::PengRobinsonGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:?
    #6  Foam::twoPhaseMixtureThermo::correct() at ??:?
    #7  ? at ??:?
    #8  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    #9  ? at ??:?
    
    


  • 0_1462882763794_QQ截图20160510202640.png


  • OpenFOAM教授

    floating point exception 浮点溢出,估计哪里的代码被0除了。



  • 程序进行 Time = 2.708e-06, 这种错误是出在哪里呢? 边界条件?还是程序?@wwzhao @cfd-china


  • OpenFOAM教授

    @mark 自己写的求解器?看起来是 Foam::PengRobinsonGas<Specie>::Z(scalar, scalar) 这个函数出的问题,你可以对照这个函数的源码仔细检查一下。



  • 是自己的求解器,跑了几个小时才出问题,是不是该检查算例呢?


  • OpenFOAM教授

    @mark 信息量太少,我无法判断问题原因。不过你可以根据截图中的back trace去找错误。


Log in to reply