|
[Sponsors] |
Error: undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam: |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 22, 2023, 10:09 |
Error: undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam:
|
#1 |
New Member
Suchintika
Join Date: Oct 2023
Posts: 1
Rep Power: 0 |
Hello everyone,
I am working on modifying 'interFoam' solver to include a new viscosity model. I am new in this field so I need help in resolving this error. The compilation of libraries were successful. On compiling this modified application, 'interMyFoam', I encountered this error. [QUOTE]:[/usr/bin/ld: Make/linux64GccDPInt32Opt/interPFoam.o: in function `Foam::myTurbulenceModel<Foam::geometricOneField, Foam::geometricOneField, Foam::incompressibleTurbulenceModel, Foam::mytransportModel>::New(Foam::geometricOneFie ld const&, Foam::geometricOneField const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::mytransportModel const&, Foam::word const&)': interPFoam.C:(.text._ZN4Foam17myTurbulenceModelINS _17geometricOneFieldES1_NS_29incompressibleTurbule nceModelENS_16mytransportModelEE3NewERKS1_S6_RKNS_ 14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldEN S_7volMeshEEERKNS7_IdNS_13fvsPatchFieldENS_11surfa ceMeshEEESJ_RKS3_RKNS_4wordE[_ZN4Foam17myTurbulenceModelINS_17geometricOneField ES1_NS_29incompressibleTurbulenceModelENS_16mytran sportModelEE3NewERKS1_S6_RKNS_14GeometricFieldINS_ 6VectorIdEENS_12fvPatchFieldENS_7volMeshEEERKNS7_I dNS_13fvsPatchFieldENS_11surfaceMeshEEESJ_RKS3_RKN S_4wordE]+0x26b): undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam::geometricOneField, Foam::incompressibleTurbulenceModel, Foam::mytransportModel>::dictionaryConstructorTabl e(Foam::word const&)' /usr/bin/ld: interPFoam.C:(.text.ZN4Foam17myTurbulenceModelINS_ 17geometricOneFieldES1_NS_29incompressibleTurbulen ceModelENS_16mytransportModelEE3NewERKS1_S6_RKNS_1 4GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS _7volMeshEEERKNS7_IdNS_13fvsPatchFieldENS_11surfac eMeshEEESJ_RKS3_RKNS_4wordE[_ZN4Foam17myTurbulenceModelINS_17geometricOneField ES1_NS_29incompressibleTurbulenceModelENS_16mytran sportModelEE3NewERKS1_S6_RKNS_14GeometricFieldINS_ 6VectorIdEENS_12fvPatchFieldENS_7volMeshEEERKNS7_I dNS_13fvsPatchFieldENS_11surfaceMeshEEESJ_RKS3_RKN S_4wordE]+0x4f3): undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam::geometricOneField, Foam::incompressibleTurbulenceModel, Foam::mytransportModel>::dictionaryConstructorTabl ePtr' collect2: error: ld returned*1*exit*status] Please help me to resolve the error. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |