Add New Element

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

Moderators: silvia, selimgunay, Moderators

Post Reply
alikmo
Posts: 8
Joined: Wed Oct 27, 2010 11:02 am
Location: Northeastern University

Add New Element

Post by alikmo »

Hi Frank,
I'm trying to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) to the solution in VC++2010 and Build the solution but I get several errors and it is not working. it needs some older library and header files and I downloaded and added them. I got some syntax errors! could you please help me.

Thanks,
Ali
linguan118
Posts: 140
Joined: Sun Oct 03, 2010 11:36 pm
Location: Hong Kong

Re: Add New Element

Post by linguan118 »

Try \Win32\OpenSees2005.sln
build Opensees
Research Assistant Professor, The Hong Kong Polytechnic University
guanlin@polyu.edu.hk
alikmo
Posts: 8
Joined: Wed Oct 27, 2010 11:02 am
Location: Northeastern University

Re: Add New Element

Post by alikmo »

Hi linguan,
Thanks for the prompt response.
I did so. I also added Tcl\include and Tcl\lib to the project folders. it didn't work. I removed quiclMain and Built the solution.
Then I tried to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) as a project to the solution in VC++2010.
I got this Error: c1xx : fatal error C1083: Cannot open source file: '..\..\win32Functions.cpp': No such file or directory.
then I added the file to the required folder.
then I got this error: 1>\opensees\packages\win32functions.cpp(5): fatal error C1083: Cannot open include file: 'elementAPI.h': No such file or directory
after adding the location of the file to the properties I got another error: error C2660: 'UniaxialMaterial::setResponse' : function does not take 4 arguments

it seems that there is a problem (maybe version mismatch) that I cant Build it!
is the way I'm adding the New Element (as a project) to the solution is correct?

Thanks again,
Last edited by alikmo on Tue Apr 05, 2011 6:58 am, edited 1 time in total.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Add New Element

Post by fmk »

sorry .. the current way to add new materials is shown here:

http://opensees.berkeley.edu/wiki/index ... _Developer

the last link shows how to create a .dll

the examples source code is here:

http://opensees.berkeley.edu/OpenSees/c ... per.tar.gz
lee20054088
Posts: 4
Joined: Tue Mar 08, 2011 5:12 pm

Re: Add New Element

Post by lee20054088 »

"There is currently no text in this page. You can search for this page title in other pages, or search the related logs. "

WHY?
linguan118
Posts: 140
Joined: Sun Oct 03, 2010 11:36 pm
Location: Hong Kong

Re: Add New Element

Post by linguan118 »

You want to add new element, but why do you use PACKAGES\NewCommand\MyTruss?
Maybe you should make it to build the original files without modification before you add any code of yourself.
Research Assistant Professor, The Hong Kong Polytechnic University
guanlin@polyu.edu.hk
Post Reply