add New Material problem, ubuntu 12.04

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

Moderators: silvia, selimgunay, Moderators

Post Reply
gaziz
Posts: 16
Joined: Fri Aug 02, 2013 1:44 pm
Location: University of British Columbia

add New Material problem, ubuntu 12.04

Post by gaziz »

Hi OpenSees community!

I downloaded the latest OpenSees using svn and have compiled it using Makefile.def.EC2-UBUNTU in ubuntu 12.04. I tested OpenSees with 1Dconsolidation.tcl example (http://opensees.berkeley.edu/wiki/index ... dation.tcl) and it works smoothly.
Now I'm trying to add new material from example ElasticPPcpp (../OpenSees/trunk/DEVELOPER/material/cpp). I'm able to run make in cpp directory to generate ElasticPPcpp.so without any problem, but when I try to run example1.tcl (same directory) I get a warning and, apparently, OpenSees exits simulation:

WARNING could not create uniaxialMaterial ElasticPPcpp

while executing
"uniaxialMaterial ElasticPPcpp 1 3000 0.001"
(file "example1.tcl" line 21)


I have OpenSees executable in the same directory where example1.tcl and ElasticPPcpp.so are located. but still it cannot create material. Any idea what can be wrong?

Thanks in advance for any help,
gaziz


P.S. In fact, my goal, once I figure out how to make OpenSees work with ElasticPPcpp.dll in ubuntu 12.04, is to follow the same method and add ND Material for cyclic response of clay. Now I wonder if the same method of model implementation will work for ND Material? Also I'd be happy if it's possible to explain how models could be added like all built-in models and compiled to generate OpenSees.exe.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: add New Material problem, ubuntu 12.04

Post by fmk »

it should work if set up correctly .. i just tested it with Ubuntu Server 13.04 on Amazon.
make sure that the LD_LIBRARY_PATH env variable points to ./
the EC2 server did not have it set, so i issued the following:
echo LD_LIBRARY_PATH=./

and then ran OpenSees.
gaziz
Posts: 16
Joined: Fri Aug 02, 2013 1:44 pm
Location: University of British Columbia

Re: add New Material problem, ubuntu 12.04

Post by gaziz »

fmk wrote:
> it should work if set up correctly .. i just tested it with Ubuntu Server
> 13.04 on Amazon.
> make sure that the LD_LIBRARY_PATH env variable points to ./
> the EC2 server did not have it set, so i issued the following:
> echo LD_LIBRARY_PATH=./
>
> and then ran OpenSees.

Thank you for the reply!

I'm not sure If I understood it correctly, but I've placed "echo LD_LIBRARY_PATH=./" at the beginning of Makefile.def and reran the compiilation. Afterwards, I used generated OpenSess with ElasticPPcpp.so to run example1.tcl, and still get the same warning (WARNING could not create uniaxialMaterial ElasticPPcpp). Is there anything else that I could have missed or did not do it correctly?
faraklit
Posts: 21
Joined: Mon Feb 25, 2013 10:38 pm
Location: Ohio State University

Re: add New Material problem, ubuntu 12.04

Post by faraklit »

I think I have same problem. Although I have tried the the way described above, nothing has chaged.
Same problem.

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

Re: add New Material problem, ubuntu 12.04

Post by fmk »

the LD_LIBRARY_PATH command is something you enter in the terminal window before attempting to run OpenSees! .. google how to set the LD_LIBRARY_PATH ubuntu to see a host of options for setting it. if you are going to be using a linux operatng system to do your work, you have to understand how to use it!
faraklit
Posts: 21
Joined: Mon Feb 25, 2013 10:38 pm
Location: Ohio State University

Re: add New Material problem, ubuntu 12.04

Post by faraklit »

Thank you fmk...
export LD_LIBRARY_PATH=.
the command solved my problem. In the directory of the new element, I typed the command and it worked.
Post Reply