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

Library error when trying to load a new library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2016, 09:37
Default Library error when trying to load a new library
  #1
New Member
 
Join Date: Jul 2015
Posts: 7
Rep Power: 10
zanilu70 is on a distinguished road
Hi to everybody

I am trying to write a modified version of the interstitialInletVelocity BC with to ad the possibility to specify both space and time dependence of a velocity inlet boundary condition.
I have more or less managed to do that (in order to have the subroutine compile I have to disable the evaluation of the time dependence from the subroutine itself by commenting out
Code:
    /* fixedValueFvPatchVectorField::operator==(profilemult_->value(dirCmpt)); */
in the Member function part of the code otherwise it won't compile, If you have comments on the subroutine itself feel free to post them ) since for I can live without the time dependence but not the variation with space of the inlet velocity.
When I try to execute setField for example I have the following error message:
Code:
--> FOAM Warning : 
    From function void* Foam::dlOpen(const Foam::fileName&, bool)
    in file POSIX.C at line 1037
    dlopen error : /home/luca/OpenFOAM/luca-4.1/platforms/linux64GccDPInt32Opt/lib/libtimespacevarinterstitialInletVelocityBC.so: undefined symbol: _ZTVN4Foam55timespacevarinterstitialInletVelocityFvPatchVectorFieldE
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
    could not load "libtimespacevarinterstitialInletVelocityBC.so"
If anyone can give me some help I would be grateful. I am quite new at OF programming and my knowledge of C++ is quite limited.
I am currently using OF 4.1

Thank you in advance.

Luca
Attached Files
File Type: gz timespacevarinterstitialInletVelocity-0.0.2.tar.gz (66.9 KB, 4 views)
zanilu70 is offline   Reply With Quote

Old   June 13, 2018, 10:31
Default Same problem
  #2
New Member
 
Andrea
Join Date: Apr 2016
Posts: 4
Rep Power: 10
Attavino is on a distinguished road
Hi Luca,


I'm experiencing the same problem you had here and I can't manage to find where the error could be. Did you solve your problem?


Best Regards,


Andrea
Attavino is offline   Reply With Quote

Old   June 13, 2018, 10:37
Default
  #3
New Member
 
Join Date: Jul 2015
Posts: 7
Rep Power: 10
zanilu70 is on a distinguished road
Andrea

I opted for a different approach and dropped my attempt at the subroutine

Sorry
zanilu70 is offline   Reply With Quote

Old   June 14, 2018, 13:38
Default
  #4
New Member
 
Andrea
Join Date: Apr 2016
Posts: 4
Rep Power: 10
Attavino is on a distinguished road
Ok no problem, I think that i mispelled something and could not find where because the file was too long, I started again from the beginning and after the linking had not problem.
Attavino is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Error "UDF library you are trying to load is not compiled for 2ddp..." ananthanarasimhan Fluent UDF and Scheme Programming 5 March 25, 2021 00:13
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the gxu2 Fluent UDF and Scheme Programming 13 August 10, 2018 17:38
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
Error: The UDF library you are trying to load is not compiled for 3ddp on the current Whitemast Fluent UDF and Scheme Programming 0 November 21, 2013 06:45
cannot load UDF library jayilosa Fluent UDF and Scheme Programming 3 November 16, 2011 12:44


All times are GMT -4. The time now is 20:06.