Search found 17 matches
- Wed Jul 23, 2014 6:25 am
- Forum: OpenSees.exe Users
- Topic: Write variables to a file
- Replies: 2
- Views: 2952
Re: Write variables to a file
You can use the "puts" command to write to a file. If you want to output a list onto separate lines, you'll have to add a loop. set X 1000. set fid [open data.out w] puts $fid "$X" close $fid set X_List [list 1 2 3 4] set fid [open data.out w] foreach Xi X_List { puts $fid "...
- Fri Jul 18, 2014 6:47 pm
- Forum: OpenSees.exe Users
- Topic: cannot read all of values from a txt file
- Replies: 6
- Views: 5561
Re: cannot read all of values from a txt file
The problem is with the element recorder. The recorders sometimes do not flush all the data to the file until the wipe command is invoked, as far as I know. However, using the wipe command in the middle of your for loop will delete your model. Instead of using the element recorder to generate an out...
- Thu Jul 17, 2014 1:52 pm
- Forum: OpenSees.exe Users
- Topic: Zerolength element
- Replies: 4
- Views: 3929
Re: Zerolength element
Assigning a material in direction 6 will allow the spring to have rotational stiffness. If you want to have a very stiff spring that does not rotate, you can assign an elastic uniaxial material with a large modulus for direction 6, or instead, you can use the equalDOF command to constrain the rotati...
- Thu Jul 17, 2014 1:31 pm
- Forum: OpenSees.exe Users
- Topic: cannot read all of values from a txt file
- Replies: 6
- Views: 5561
Re: cannot read all of values from a txt file
I suggest trying to load all the data in at once and then do your operations. The read command will load all of the data so you will have to parse it yourself. One way to parse it is to use the split command. If each value is on a new line, this method should work. -Nick Read command: https://www.tc...
- Thu Jul 17, 2014 3:47 am
- Forum: OpenSees.exe Users
- Topic: Zerolength element
- Replies: 4
- Views: 3929
Re: Zerolength element
Yes, you can use only one spring. You can define the spring to have a shear response material in the horizontal direction and an axial response material in the vertical direction. If you are modeling RC columns, take a look at the shear and axial limit state materials and their examples. http://open...
- Wed Jul 09, 2014 6:12 am
- Forum: OpenSees.exe Users
- Topic: Output data
- Replies: 14
- Views: 12321
Re: Output data
I think the easiest way to accomplish this is to create lists for all of properties of the elements and use those to assign all of the values. It's important that across all of the lists the list values correspond to the appropriate elements, otherwise you'll incorrectly assign properties to element...
- Wed Jul 09, 2014 4:10 am
- Forum: OpenSees.exe Users
- Topic: Output data
- Replies: 14
- Views: 12321
Re: Output data
I'm glad it worked! So do you want to use a command similar to "eleResponse" in order to get a property of an element? If so, I do not know a direct command to do this, and I guess I do not understand the motivation behind this. When I create elements, I usually assign all of their paramet...
- Tue Jul 08, 2014 9:32 am
- Forum: OpenSees.exe Users
- Topic: Output data
- Replies: 14
- Views: 12321
Re: Output data
Kavir, From this document, it looks like the basic forces are at the end nodes of the element and are used to compute the sectional and material reactions. So maybe the basicForce recorder just saves those end forces and not the forces computed from the finite approximation? I'm not sure. I suggest ...
- Sat Jun 28, 2014 10:34 am
- Forum: OpenSees.exe Users
- Topic: A Very Basic Problem
- Replies: 2
- Views: 2715
Re: A Very Basic Problem
The recorder commands should be placed before the analyze command. I would move the recorder lines between your "### END OF MODELING ###" and "### ANALYSIS ###" sections. That should be all that you need to do to fix it.
- Nick
- Nick
- Fri Jun 27, 2014 7:24 am
- Forum: OpenSees.exe Users
- Topic: Output data
- Replies: 14
- Views: 12321
Re: Output data
There are six columns because the reactions at the two nodes of the element are being recorded.
Columns 1 and 4 are horizontal reactions; 2 and 5 are vertical reactions; 3 and 6 are end moments.
-Nick
Columns 1 and 4 are horizontal reactions; 2 and 5 are vertical reactions; 3 and 6 are end moments.
-Nick
- Fri May 30, 2014 11:51 am
- Forum: OpenSees.exe Users
- Topic: Run OpenSees through Matlab in Mac Unix Systems
- Replies: 3
- Views: 3825
Re: Run OpenSees through Matlab in Mac Unix Systems
I would try setting a path to the folder in Matlab. If you click "File" on the main Matlab toolbar and then select "Set Path", you should be prompted with a window that has all of the Matlab search paths. Select "Add Folder...", and navigate to the folder that has your ...
- Mon Jan 20, 2014 1:51 pm
- Forum: OpenSees.exe Users
- Topic: Hysteretic Material
- Replies: 5
- Views: 4520
Re: Hysteretic Material
Correct, the hysteretic material requires the direct values of stress and strain (or force and deformation). Sorry for the confusion. In the example, I was demonstrating how to use the second point of the envelope to define the first and third points. In this case, I used the yield moment (point 2) ...
- Mon Jan 20, 2014 6:31 am
- Forum: OpenSees.exe Users
- Topic: Hysteretic Material
- Replies: 5
- Views: 4520
Re: Hysteretic Material
You assign the stress and strain (or force and deformation) directly for the hysteretic material. You could set up your code to assign the direct values based off of a normalization, if you desire to. This is an example of how to define a hysteretic material based off of the yield moment and rotatio...
- Fri Dec 27, 2013 12:31 pm
- Forum: OpenSees.exe Users
- Topic: no degradation in pushover curve!
- Replies: 6
- Views: 7513
Re: no degradation in pushover curve!
What are you comparing with your pushover plot, roof displacement vs base shear? What do you mean by degradation in the curve? Does your curve for the frame follow a linear path?
- Fri Dec 27, 2013 12:16 pm
- Forum: OpenSees.exe Users
- Topic: Display mode shapes
- Replies: 3
- Views: 4872
Re: Display mode shapes
You can use the Tcl command "after". Place it following the display command. More information can be found at: http://wiki.tcl.tk/808 -Nick Example: recorder display "Mode Shape" 10 500 500 500 -wipe prp 10 10 1; vup 0 1 0; vpn 0 0 1; viewWindow -250 250 -250 250 display -1 10 20...