Search found 4 matches

by dbpatankar
Fri Dec 10, 2021 2:48 am
Forum: OpenSees.exe Users
Topic: tclreadline and opensees compatibility issue
Replies: 0
Views: 11528

tclreadline and opensees compatibility issue

I have used tclreadline with opensees earlier for autocompletion of commands (shell commands). This helps a lot. However, in recent version of opensees there is issue with compatibility. Here follows the detailed description to reproduce the issue.

1) install opensees as usual. In my case its on Ubuntu 20.04 (Also tested on archlinux).
2) OpenSees works fine at this stage but has no autocomplete feature as it has to be added in tclsh.
3) Install tcl-tclreadline from Ubuntu repository.
4) copy following code into ~/.tclshrc to import the tclreadline package

Code: Select all

      
      if {$tcl_interactive} {
      package require tclreadline 
      ::tclreadline::Loop
      }
5) Now execute the command OpenSees to start opensees
6) Produces following error
invalid command name "load"
So clearly once the tclreadline package loads opensees gives this error. Without this package it works fine. Would be great if this issue is resolved. Autocomplete makes coding and debugging a lot easier.
by dbpatankar
Tue Oct 18, 2016 7:18 am
Forum: OpenSees.exe Users
Topic: OpenSeesTk recorder plot segmentation fault
Replies: 2
Views: 2956

Re: OpenSeesTk recorder plot segmentation fault

I actually want to view the mode shapes of the structure. For the same, I tried using display command but the command is not documented. So I thought to first try to see if I can display the graphics by using plot command which is documented. Hence I am trying to first get the graphics working.

I have tried the display command as given in one of the wiki pages to view mode shapes. But the code hangs on that line.
by dbpatankar
Sun Oct 16, 2016 9:53 pm
Forum: OpenSees.exe Users
Topic: OpenSeesTk recorder plot segmentation fault
Replies: 2
Views: 2956

OpenSeesTk recorder plot segmentation fault

I was first trying to use display command which wasn't working so I am now trying to simply plot data from a file.

I have code to perform eigenvalue analysis. The code works well and gives the time periods and mode shapes. However when I try to plot periods (just a test plot) using

recorder plot "Periods_nodamp.out" "Title" 10 10 400 400 -columns 1 2

it gives

Error in startup script: Segmentation fault (core dumped)

I have already added multiple columns to the file so the Periods_nodamp.out file is :
1 1 0.8634541184475268
2 2 0.39851184431918
3 3 0.21394412465887752
4 4 0.15027873309908066
5 5 0.11720049129733984
6 6 0.08687999187557251
7 7 0.0760795148443558
8 8 0.06984420066627846
9 9 0.06282206052285803
10 10 0.06025324750575258

Is there any problem with the command? If I comment the command, the code works, writes the necessary period and mode shape files and gives no error.
by dbpatankar
Wed Jul 13, 2016 5:15 am
Forum: OpenSees.exe Users
Topic: uniaxialMaterial Cable
Replies: 1
Views: 2664

uniaxialMaterial Cable

I am trying to model a cable using uniaxialMaterial Cable as material model
Here is the actual line used

set cableMatTag 3
set prestress 100e6; # Prestress 100 MPa
set uWtCable [expr $densitySteel * 9.81 * cos(0.6435)]
set LElement [expr sqrt($L**2+$H**2)]
uniaxialMaterial Cable $cableMatTag $prestress $E $uWtCable $LElement

But when I execute the script, I get the error as :
Invalid # args, want: uniaxialMaterial Cable tag? $presetress $E $effUnitWeight $Lelement

Whereas if you see the code above, it clearly follows the syntax given. Kindly let me know where is the mistake.