CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Error: undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam:

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2023, 10:09
Default Error: undefined reference to `Foam::myTurbulenceModel<Foam::geometricOneField, Foam:
  #1
New Member
 
Suchintika
Join Date: Oct 2023
Posts: 1
Rep Power: 0
suchintika11 is on a distinguished road
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.
suchintika11 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:09.