add New Material problem, ubuntu 12.04
Moderators: silvia, selimgunay, Moderators
add New Material problem, ubuntu 12.04
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.
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.
Re: add New Material problem, ubuntu 12.04
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.
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.
Re: add New Material problem, ubuntu 12.04
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?
> 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?
Re: add New Material problem, ubuntu 12.04
I think I have same problem. Although I have tried the the way described above, nothing has chaged.
Same problem.
Thanks...
Same problem.
Thanks...
Re: add New Material problem, ubuntu 12.04
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!
Re: add New Material problem, ubuntu 12.04
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.
export LD_LIBRARY_PATH=.
the command solved my problem. In the directory of the new element, I typed the command and it worked.