新建求解器编译错误



  • collect2.exe:error:ld returned 1 exit status
    ```)


  • 基于reactingTwoPhaseEulerFoam编写的,在这个求解器里面有个twoPhaseSystem文件夹,没有动这个文件夹,只是添加了气固异相反应源项,运行Allwmake以后,出现这个错误



  • 捕获.PNG



  • 我遇到过类似的问题但不确定是否一样,你可以试一下Make/files中加一个'USER'

    EXE = $(FOAM_USER_APPBIN)/
    


  • @同学博 好的,我试试,谢谢了



  • Selecting thermodynamics package 
    {
        type            heRhoThermo;
        mixture         multiComponentMixture;
        transport       const;
        thermo          hRefConst;
        equationOfState rhoConst;
        specie          specie;
        energy          sensibleEnthalpy;
    }
    
    #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::DimensionedField<double, Foam::volMesh>::operator/=(Foam::DimensionedField<double, Foam::volMesh> const&) at ??:?
    #4  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::operator/=(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
    #5  Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hRefConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::correctMassFractions() at ??:?
    #6  Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hRefConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::multiComponentMixture(Foam::dictionary const&, Foam::fvMesh const&, Foam::word const&) at ??:?
    #7  Foam::heThermo<Foam::rhoReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hRefConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > > >::heThermo(Foam::fvMesh const&, Foam::word const&) at ??:?
    #8  Foam::rhoReactionThermo::addfvMeshConstructorToTable<Foam::heRhoThermo<Foam::rhoReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::constTransport<Foam::species::thermo<Foam::hRefConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > > > >::New(Foam::fvMesh const&, Foam::word const&) at ??:?
    #9  Foam::autoPtr<Foam::rhoReactionThermo> Foam::basicThermo::New<Foam::rhoReactionThermo>(Foam::fvMesh const&, Foam::word const&) at ??:?
    #10  Foam::rhoReactionThermo::New(Foam::fvMesh const&, Foam::word const&) at ??:?
    #11  Foam::ThermoPhaseModel<Foam::phaseModel, Foam::rhoReactionThermo>::ThermoPhaseModel(Foam::phaseSystem const&, Foam::word const&, int) at ??:?
    #12  Foam::MovingPhaseModel<Foam::ThermoPhaseModel<Foam::phaseModel, Foam::rhoReactionThermo> >::MovingPhaseModel(Foam::phaseSystem const&, Foam::word const&, int) at ??:?
    #13  Foam::MultiComponentPhaseModel<Foam::InertPhaseModel<Foam::MovingPhaseModel<Foam::ThermoPhaseModel<Foam::phaseModel, Foam::rhoReactionThermo> > > >::MultiComponentPhaseModel(Foam::phaseSystem const&, Foam::word const&, int) at ??:?
    #14  Foam::phaseModel::addphaseSystemConstructorToTable<Foam::AnisothermalPhaseModel<Foam::MultiComponentPhaseModel<Foam::InertPhaseModel<Foam::MovingPhaseModel<Foam::ThermoPhaseModel<Foam::phaseModel, Foam::rhoReactionThermo> > > > > >::New(Foam::phaseSystem const&, Foam::word const&, int) at ??:?
    #15  Foam::phaseModel::New(Foam::phaseSystem const&, Foam::word const&, int) at ??:?
    #16  void Foam::PtrList<Foam::phaseModel>::read<Foam::phaseModel::iNew>(Foam::Istream&, Foam::phaseModel::iNew const&) at ??:?
    #17  Foam::phaseSystem::phaseSystem(Foam::fvMesh const&) at ??:?
    #18  Foam::twoPhaseSystem::twoPhaseSystem(Foam::fvMesh const&) at ??:?
    #19  Foam::MomentumTransferPhaseSystem<Foam::twoPhaseSystem>::MomentumTransferPhaseSystem(Foam::fvMesh const&) at ??:?
    #20  Foam::TwoResistanceHeatTransferPhaseSystem<Foam::MomentumTransferPhaseSystem<Foam::twoPhaseSystem> >::TwoResistanceHeatTransferPhaseSystem(Foam::fvMesh const&) at ??:?
    #21  Foam::PhaseTransferPhaseSystem<Foam::TwoResistanceHeatTransferPhaseSystem<Foam::MomentumTransferPhaseSystem<Foam::twoPhaseSystem> > >::PhaseTransferPhaseSystem(Foam::fvMesh const&) at ??:?
    #22  Foam::ThermalPhaseChangePhaseSystem<Foam::PhaseTransferPhaseSystem<Foam::TwoResistanceHeatTransferPhaseSystem<Foam::MomentumTransferPhaseSystem<Foam::twoPhaseSystem> > > >::ThermalPhaseChangePhaseSystem(Foam::fvMesh const&) at ??:?
    #23  Foam::twoPhaseSystem::adddictionaryConstructorToTable<Foam::ThermalPhaseChangePhaseSystem<Foam::PhaseTransferPhaseSystem<Foam::TwoResistanceHeatTransferPhaseSystem<Foam::MomentumTransferPhaseSystem<Foam::twoPhaseSystem> > > > >::New(Foam::fvMesh const&) at ??:?
    #24  Foam::twoPhaseSystem::New(Foam::fvMesh const&) at ??:?
    #25  ? in "/home/dyfluid/OpenFOAM/OpenFOAM-6/platforms/linux64GccDPInt32Opt/bin/myFoam"
    #26  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    #27  ? in "/home/dyfluid/OpenFOAM/OpenFOAM-6/platforms/linux64GccDPInt32Opt/bin/myFoam"
    Floating point exception (core dumped)
    
    


  • 前一问题解决: 估计上一个问题是版本问题了,我用东岳老师的安装教程linux系统下面可以编译,但是在运行的时候出现这个问题。bluecfd好像缺少一个reactingphasesystem的库,所以会出错。
    目前新问题:使用multiComponentMixture模型,是这个模型不能适用于固相两种组分吗(异相反应编写是小小小白的纯数学函数的,没有使用库啥的)?运行后会出这个错误,目前应该是能排除异相反应模块的编写错误(程序还未进入循环),跪求大佬们施以援助。


Log in to reply
 


CFD中文网 | 东岳流体学术 | 东岳流体商业 | 吉ICP备20003622号-1