Skip to content

Issue Calling MoorDyn in Wec-Sim #372

@cyweco

Description

@cyweco

Hi there,

I'm trying to run the RM3 example from the Wec-Sim tutorials with added mooring from the Wec-Sim applications repo. I've changed nothing to the files in these folders.

I am using matlab

>> version

ans =

    '25.2.0.3150157 (R2025b) Update 4'

and I've downloaded the MoorDyn version from the Wec-Sim repo and stored the files in the WEC-Sim\source\functions\moorDyn folder.

with this setup, my Matlab crashes (see crash log matlab_crash.txt ).

Next I've tried to compile both MoorDyn v2.6.1 as well as MoorDyn v2.4.0 myself and place the built libmoordyn.dll file in the \WEC-Sim\source\functions\moorDyn folder. This gives me the following error:

>> wecSim
WEC-Sim: An open-source code for simulating wave energy converters
Version: 7.0.0

Initializing the Simulation Class...
	Case Dir: C:\Users\delap\Documents\MATLAB\Weco-Sim\RM3 
---------------Starting MoorDyn-----------
Error using loadlibrary
There was an error loading the library "C:\Users\delap\Documents\MATLAB\WEC-Sim\source\functions\moorDyn\libmoordyn.dll"
The specified procedure could not be found.

any ideas to move forward are very welcome! :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions