How to use dll in opensees

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
davidjingyu
Posts: 10
Joined: Sat Mar 29, 2008 3:35 am
Location: Southeast Univ

How to use dll in opensees

Post by davidjingyu »

Dear fmk:

Once I have get the dll and lib file of new material, what should i do next to introduce it into opensees, so that new opensee.exe file can support new material command.
Should i add dll file to certain folder and re-compile the opensees program?

Thank you very much!


Best regards!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you do not have to recompile OpenSees .. place the .dll in a LD_PATH directory .. same directory where you currently are typically works.
Zephyre
Posts: 10
Joined: Tue Sep 22, 2009 10:26 am
Location: UMD

Post by Zephyre »

Hi Frank,

I appreciate if you clarify this for me by confirming if I do the right thing:

I want to add a new material to OpenSees.

- I open the WindowsDLLs solution from source code (in PACKAGES/win32). Is that ok if I just modify the ElasticPPcpp.h and ElasticPPcpp.cpp, just build the ElasticPPcpp project (not all the solution which also contains the element and other stuff), and add the created dll file to the directory that I have opensees.exe file and my script and run my tcl file?

- Do I have to recreate opensees.exe or is it fine just to use what I get from your website and it should work with only having dll file in it's directory?

Thanks in advance.
Thanks!
Post Reply