The progress of adding a new material

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

Moderators: silvia, selimgunay, Moderators

Post Reply
J.Zhang
Posts: 11
Joined: Mon Feb 02, 2009 3:27 am
Location: Edinburgh

The progress of adding a new material

Post by J.Zhang »

Hi,

I am going to write a new material and add it into OpenSees. But I am not clear the whole progress of it.

If someone could give me some information of that, I would be very appreciate it.

Thanks

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

Post by fmk »

look at the files in OpenSees/SRC/PACKAGES and read the draft document on the dynamic api available at bottom of this page:

[url]
http://opensees.berkeley.edu/OpenSees/d ... ev_doc.php
[/url]
J.Zhang
Posts: 11
Joined: Mon Feb 02, 2009 3:27 am
Location: Edinburgh

Post by J.Zhang »

Thank you very much for your reply.

I have read the dynamic api, and I noticed the files in OpenSees/SRC/PACKAGES.

Supposed I have finished the *.h and *.cpp files, what should I do next?

Thanks again.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

open corresponding windows project, remove other material or element .h and .cpp files, add your files and then change the output library name to same name as your class. then build the project & test.
J.Zhang
Posts: 11
Joined: Mon Feb 02, 2009 3:27 am
Location: Edinburgh

Post by J.Zhang »

Thank you, Frank.

But I still have some I do not know.

"open corresponding windows project,"
There are 25 projects from "actor" to "utility", which one I should open? or creat a new project? or the other project?

"remove other material or element .h and .cpp files,"
Where should I remove all these .h and .cpp files from? From OpenSees\PACKAGE? or other?

"add your files"
Same question, where to add?

"change the output library name to same name as your class"
Where is the output library? How can I find it?

Look forward to hearing from you.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

the projects i am referring are in the solution found in the OpenSees/PACKAGES/Win32 directory. you are looking at OpenSees solution in OpenSees/Win32 directory.
Post Reply