Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 物性库编译提示 undefined reference

物性库编译提示 undefined reference

已定时 已固定 已锁定 已移动 OpenFOAM
2 帖子 1 发布者 866 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • L 离线
    L 离线
    lyw
    写于2024年5月4日 08:14 最后由 编辑
    #1

    我想在icoReactingMultiphaseInterFoam求解器中加一个新的物性库组合,polynomialTransport hPolynomialThermo incompressiblePerfectGas<specie>,sensibleEnthalpy。物性组合的文件在\v2206\OpenFOAM-v2206\src\phaseSystemModels\multiphaseInter\phasesSystem\InterfaceCompositionModel\InterfaceCompositionModels.C,在文件中定义了我要的物性组合

    typedef
    polynomialTransport
    <
    species::thermo
    <
    hPolynomialThermo
    <
    incompressiblePerfectGas<specie>,
    8
    >,
    sensibleEnthalpy
    >,
    8
    > mymyicoPoly8HThermoPhysics;

    加到了组合中

        makeInterfaceContSpecieMixtureType
        (
            Lee,
            heRhoThermo,
            rhoThermo,
            pureMixture,
            constRhoHThermoPhysics,
            heRhoThermo,
            rhoReactionThermo,
            multiComponentMixture,
            mymyicoPoly8HThermoPhysics
        );
    

    库文件编译通过,

    在对求解器进行编译 ,将新的物性组合添加到求解器中,报错b56e3ddb-9b68-4682-9df4-b1767db69979-image.png

    -lfiniteVolume -lfvOptions -lmeshTools -lsampling -ldynamicFvMesh -lturbulenceModels -lcompressibleTurbulenceModels -lthermoTools -lcompressibleTransportModels -lradiationModels -lfluidThermophysicalModels -lsolidThermo -lsolidSpecie -ltwoPhaseProperties -llaserDTRM -lincompressibleMultiphaseSystems -lcompressibleMultiPhaseTurbulenceModels -lOpenFOAM -ldl
    -lm -o /home/lyw/OpenFOAM/v2206/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/testicoReactingMultiphaseInterFoam
    /usr/bin/ld: /home/lyw/OpenFOAM/v2206/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/lib/libincompressibleMultiphaseSystems.so: undefined reference to `Foam::heRhoThermo<Foam::rhoReactionThermo, Foam::SpecieMixture<Foam::multiComponentMixture<Foam::polynomialTransport<Foam::species::thermo<Foam::hPolynomialThermo<Foam::incompressiblePerfectGasFoam::specie, 8>, Foam::sensibleEnthalpy>, 8> > > >::typeName'
    collect2: error: ld returned 1 exit status
    make: *** [/home/lyw/OpenFOAM/v2206/OpenFOAM-v2206/wmake/makefiles/general:150: /home/lyw/OpenFOAM/v2206/OpenFOAM-v2206/platforms/linux64GccDPInt32Opt/bin/testicoReactingMultiphaseInterFoam] Error 1

    另外这个就可以不报错,

        makeInterfaceContSpecieMixtureType
        (
            Lee,
            heRhoThermo,
            rhoThermo,
            pureMixture,
            constRhoHThermoPhysics,
            heRhoThermo,
            rhoReactionThermo,
            multiComponentMixture,
            icoPoly8HThermoPhysics
        );
    

    其中icoPoly8HThermoPhysics如下

    typedef
    polynomialTransport
    <
    species::thermo
    <
    hPolynomialThermo
    <
    icoPolynomial<specie, 8>,
    8
    >,
    sensibleEnthalpy
    >,
    8
    > icoPoly8HThermoPhysics;

    请问,怎么才能将报错的组合编译成功?是哪里错了吗?没提到的地方基本都没有改动

    1 条回复 最后回复
  • L 离线
    L 离线
    lyw
    写于2024年5月4日 08:18 最后由 编辑
    #2

    因为密度和温度是成反比,多项式拟合即使用7次方拟合,效果仍然较差,而不可压理想气体模型可以又快又准的计算出密度

    1 条回复 最后回复
2024年5月4日 08:14

1/2

2024年5月4日 08:14

2024年5月4日 08:18
  • 登录

  • 登录或注册以进行搜索。
1 / 2
  • 第一个帖子
    1/2
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]