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

Openfoam cannot find user made library

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2024, 08:20
Default Openfoam cannot find user made library
  #1
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I created new library, and successfully compiled it. However, when I try to run the code using such library, error shows like below, and cannot proceed.



I also checked my $FOAM_USER_LIBBIN directory, but library existed, so it seems like OF cannot find my library somehow... What could be the reason?







--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : /home/song/OpenFOAM/song-11/platforms/linux64GccDPInt32Opt/lib/libfluidage.so: undefined symbol: _ZN4Foam2fv15laplacianSchemeIdNS_6VectorIdEEE27Ist reamConstructorTablePtr_E
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libfluidage.so"
songyi719 is offline   Reply With Quote

Old   March 23, 2024, 08:28
Default
  #2
Member
 
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 57
Rep Power: 4
songyi719 is on a distinguished road
I found the reason. It was because laplacian operator was running with fvm::laplacian(vector,scalar).

By the way, does anyone knows how exactly laplacian works here?

Modifying the laplacian operator

This post says that if I put tensor in DT, I can do 1-D laplacian, but I can't get the concept how OF's laplacian takes tensor. If i put 3x3 tensor in DT, wouldn't it return vector with 3 values?
songyi719 is offline   Reply With Quote

Reply

Tags
libbin, library, posix, wmake


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
how to link the path of a newly compiled library to another library in OpenFOAM sourav8016 OpenFOAM 3 December 28, 2023 16:21
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18


All times are GMT -4. The time now is 01:31.