[MBDyn-users] MBDyn-AeroDyn Analysis: error during runtime

Jens.vanSchelve at Emerson.com Jens.vanSchelve at Emerson.com
Wed Feb 1 14:04:29 CET 2012


The function mbdyn_init which is called in module-aerodyn.cc is defined in mbdyn_ad.f90. Your error message means that the module is not correctly coupled with mbdyn_ad.f90
Make sure you have the Makefile.inc in the folder module-aerodyn with the content

MODULE_DEPENDENCIES=mbdyn_ad.lo
MODULE_LINK=-L. -lAeroDyn

I attached a file which lists all the files you should have in module-aerodyn after compiling. Make sure it maches your list.
As I said I did not do "make install" -so I don't have any files in /usr/local/libexec -but this should not cause the problem

Jens

Jens van Schelve | Research Engineer for System Engineering | SSB Wind Systems GmbH & Co.KG
Emerson Industrial Automation | Neuenkirchener Straße 13 | 48499 Salzbergen | Germany
T +49 5976 946 2867 | F +49 5976 946 222 286
Jens.vanSchelve at Emerson.com | www.ssbwindsystems.de

Handelsregister | Commercial Register: Amtsgericht Osnabrueck HRA 100080
Geschaeftsfuehrer | Managing Directors: Dr. Gisbert Schulze, Dipl.-Betriebswirt (FH) Dirk Hamenstaedt
phG | General Partner: SSB-Antriebstechnik Verwaltungs- und Beteiligungsgesellschaft mbH | Neuenkirchener Str. 13 | 48499 Salzbergen
Handelsregister | Commercial Register: Amtsgericht Osnabrueck HRB 100015
Von: Manoj K. Dhadwal [mailto:manu.bhaskara at gmail.com]
Gesendet: Mittwoch, 1. Februar 2012 10:01
An: van Schelve, Jens [INDAUTO/SSB/SAL]; mbdyn-users
Betreff: Re: [MBDyn-users] MBDyn-AeroDyn Analysis: error during runtime

Dear Jens,

I tried the steps you mentioned but with no success. I even tried with the files you sent. But I'm still getting the same error. All the library files are installed in /usr/local/libexec/.

mbdyn: symbol lookup error: /usr/local/libexec/libmodule-aerodyn.so.0: undefined symbol: mbdyn_init_

regards,

Manoj
On Tue, Jan 31, 2012 at 6:28 PM, <Jens.vanSchelve at emerson.com<mailto:Jens.vanSchelve at emerson.com>> wrote:
Hi,

I think you have done "make install", because the module is loaded from:
"/usr/local/libexec/libmodule-aerodyn.la<http://libmodule-aerodyn.la>"
-but your path in your input file is:
module load: "/<path-to-mbdyn>/mbdyn-1.4.2/modules/module-aerodyn/.libs/libmodule-aerodyn.la<http://libmodule-aerodyn.la>";
I would try to change this to:
module load: "libmodule-aerodyn.<http://libmodule-aerodyn.la>so";

If this doesn't work, I remember that I once had a similar problem and had to do some changes to module aerodyn.
Try the attached files, instead of the original in module-aerodyn.
make distclean
./configure --with-module="aerodyn" --enable-runtime-loading=yes LDFLAGS="-rdynamic"
make

then you could do "sudo make install", but I prefer just making a link: go to module-aerodyn/.libs, then type:
ln -s libmodule-aerodyn.<http://libmodule-aerodyn.la>so /usr/libs/libmodule-aerodyn.<http://libmodule-aerodyn.la>so
And add mbdyn/mbdyn to your PATH

Jens


Jens van Schelve | Research Engineer for System Engineering | SSB Wind Systems GmbH & Co.KG
Emerson Industrial Automation | Neuenkirchener Straße 13 | 48499 Salzbergen | Germany
T +49 5976 946 2867<tel:%2B49%205976%20946%202867> | F +49 5976 946 222 286<tel:%2B49%205976%20946%20222%20286>
Jens.vanSchelve at Emerson.com<mailto:Jens.vanSchelve at Emerson.com> | www.ssbwindsystems.de<http://www.ssbwindsystems.de>

Handelsregister | Commercial Register: Amtsgericht Osnabrueck HRA 100080
Geschaeftsfuehrer | Managing Directors: Dr. Gisbert Schulze, Dipl.-Betriebswirt (FH) Dirk Hamenstaedt
phG | General Partner: SSB-Antriebstechnik Verwaltungs- und Beteiligungsgesellschaft mbH | Neuenkirchener Str. 13 | 48499 Salzbergen
Handelsregister | Commercial Register: Amtsgericht Osnabrueck HRB 100015
Von: mbdyn-users-bounces at mbdyn.org<mailto:mbdyn-users-bounces at mbdyn.org> [mailto:mbdyn-users-bounces at mbdyn.org<mailto:mbdyn-users-bounces at mbdyn.org>] Im Auftrag von Manoj K. Dhadwal
Gesendet: Montag, 30. Januar 2012 23:07
An: mbdyn-users; Pierangelo Masarati
Betreff: [MBDyn-users] MBDyn-AeroDyn Analysis: error during runtime

Dear All,

I have prepared an input model of wind turbine for the coupled MBDyn-AeroDyn analysis. I have AeroDyn with MBDyn v1.4.2. I get the following error after the loading of Aerodyn module:

module "/usr/local/libexec/libmodule-aerodyn.la<http://libmodule-aerodyn.la>" loaded
Reading LoadableElement(900000)
Module: AeroDyn

Author: Fanzhong Meng, Pierangelo Masarati

This is the MBDyn interface to AeroDyn, the aerodynamic routines
developed by NREL <http://www.nrel.gov/> to model the aerodynamic
forces acting on wind turbines

usage:
Nacelle node; requirements:
        - axis 3 is the shaft axis
        - axis 3 in wind direction
    <nacelle node label> ,
    <hub node label> ,
    <pylon top-hub xy distance> ,
    <hub radius> ,
    <number of blades> ,
    <number of elements per blade> ,
    # for each blade... axis 1 must be the blade spanwise direction
        <i-th blade root orientation matrix> ,
        # for each blade element...
            <i-th blade j-th node label> ,
            [ orientation , <i-th blade j-th node orientation> , ]
    [ output file name , " <file name> " ]
mbdyn: symbol lookup error: /<path-to-mbdyn>/mbdyn-1.4.2/modules/module-aerodyn/.libs/libmodule-aerodyn.so.0: undefined symbol: mbdyn_init_

Below is the description of the aerodynamic elements, which I am using in the MBDyn model.

module load: "/<path-to-mbdyn>/mbdyn-1.4.2/modules/module-aerodyn/.libs/libmodule-aerodyn.la<http://libmodule-aerodyn.la>";
        user defined: 900000, aerodyn, help,

            SN_NACELLE,                    # NACELLE NODE LABEL
            SN_ROTOR,                      # HUB NODE LABEL
            HUB_YAWAXIS_DIST,        # TOWER TOP TO HUB DISTANCE
            HUB_RADIUS,                    # HUB RADIUS
            3,                                    # NO. OF BLADES
            20,                                  # NO. OF ELEMENTS PER BLADE

            # Blade 1 elements
            reference, BLADE1_FLANGE_PITCH,
        3, 0.,0.,1.,
        1, 1.,0.,0.,

        SN_BLADE1 + 20,
     position, reference, node,
                +0.00000000e+00, +6.04550000e-02, +0.00000000e+00,
       orientation, reference, BLADE1_FLANGE_PITCH,
                1, +1.00000000e+00, +0.00000000e+00, +0.00000000e+00,    # X-axis == X-axis of Blade
                2, +0.00000000e+00, +9.73146742e-01, -2.30185616e-01 ,       # Y-axis == Y-axis of Blade

        SN_BLADE1 + 30,
     position, reference, node,
                +0.00000000e+00, +2.19363000e-01, +0.00000000e+00,
       orientation, reference, BLADE1_FLANGE_PITCH,
                1, +1.00000000e+00, +0.00000000e+00, +0.00000000e+00,    # X-axis == X-axis of Blade
                2, +0.00000000e+00, +9.73146742e-01, -2.30185616e-01  ,      # Y-axis == Y-axis of Blade

        SN_BLADE1 + 40,
     position, reference, node,
                +0.00000000e+00, +4.03973375e-01, +0.00000000e+00,
       orientation, reference, BLADE1_FLANGE_PITCH,
                1, +1.00000000e+00, +0.00000000e+00, +0.00000000e+00,    # X-axis == X-axis of Blade
                2, +0.00000000e+00, +9.73153120e-01, -2.30158653e-01,        # Y-axis == Y-axis of Blade

        SN_BLADE1 + 50,
     position, reference, node,
                +0.00000000e+00, +5.55359500e-01, +0.00000000e+00,
       orientation, reference, BLADE1_FLANGE_PITCH,
                1, +1.00000000e+00, +0.00000000e+00, +0.00000000e+00,    # X-axis == X-axis of Blade
                2, +0.00000000e+00, +9.75775497e-01, -2.18774267e-01  ,      # Y-axis == Y-axis of Blade

        SN_BLADE1 + 60,
     position, reference, node,
                +0.00000000e+00, +5.75437500e-01, +0.00000000e+00,
       orientation, reference, BLADE1_FLANGE_PITCH,
                1, +1.00000000e+00, +0.00000000e+00, +0.00000000e+00,    # X-axis == X-axis of Blade
                2, +0.00000000e+00, +9.81550509e-01, -1.91203030e-01 ,       # Y-axis == Y-axis of Blade

 ............................................................................ and so on ..

        output file name, "out.adn",
        input file name, "aerodyn.ipt";


Any help would be appreciated.

Regards,

Manoj K. Dhadwal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20120201/4cd9b31d/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: module-aerodyn.txt
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20120201/4cd9b31d/attachment-0001.txt>


More information about the MBDyn-users mailing list