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 Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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

 


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 14:43.