物性库编译提示 undefined reference
-
我想在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 );
库文件编译通过,
在对求解器进行编译 ,将新的物性组合添加到求解器中,报错
-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;请问,怎么才能将报错的组合编译成功?是哪里错了吗?没提到的地方基本都没有改动