The following is my code. Recorder files starting with 'ColElement_1_Level', 'ColElement_2_Level','BmXElement_1_Level' and 'BmXElement_2_Level' gets generated as soon as the code is run. But files starting with 'BmZElement_1_Level' and 'BmZElement_2_Level' doesnt appear anywhere inside the directory. I cant seem to find where the problem is as the code used for the three cases are exactly the same with change only in variable and file names only. Please help me.
# Element properties for columns
set Col_No 1
for {set i 1} {$i <= $stry} {incr i} {
set Col_No_list [list $Col_No]
for {set j 1} {$j < $NoCol} {incr j} {
set Col_No [expr $Col_No + 1]
lappend Col_No_list $Col_No
eval "recorder Element -file $dataDir/ColElement_1_Level$i.out -time -ele $Col_No_list section $np fiber -20 0 stressStrain";
eval "recorder Element -file $dataDir/ColElement_2_Level$i.out -time -ele $Col_No_list section $np fiber 20 0 stressStrain";
}
# puts "Column list is $Col_No_list"
set Col_No [expr $Col_No + 1]
}
# Element properties for X directioned beams
set BmX_No [expr ($stry*$NoCol) +1 ]
for {set i 1} {$i <= $stry} {incr i} {
set BmX_No_list [list $BmX_No]
for {set j 1} {$j < $NoBmX} {incr j} {
set BmX_No [expr $BmX_No + 1]
lappend BmX_No_list $BmX_No
eval "recorder Element -file $dataDir/BmXElement_1_Level$i.out -time -ele $BmX_No_list section $np fiber -20 0 stressStrain";
eval "recorder Element -file $dataDir/BmXElement_2_Level$i.out -time -ele $BmX_No_list section $np fiber 20 0 stressStrain";
}
# puts "X Beam list is $BmX_No_list"
set BmX_No [expr $BmX_No + 1]
}
# Element properties for Z directioned beams
set BmZ_No [expr $BmX_No]
for {set i 1} {$i <= $stry} {incr i} {
set BmZ_No_list [list $BmZ_No]
for {set j 1} {$j < $NoBmZ} {incr j} {
set BmZ_No [expr $BmZ_No + 1]
lappend BmZ_No_list $BmZ_No
eval "recorder Element -file $dataDir/BmZElement_1_Level$i.out -time -ele $BmZ_No_list section $np fiber -20 0 stressStrain";
eval "recorder Element -file $dataDir/BmZElement_2_Level$i.out -time -ele $BmZ_No_list section $np fiber 20 0 stressStrain";
}
# puts "Z beam list is $BmZ_No_list"
set BmZ_No [expr $BmZ_No + 1]
Recorder file not generating ???
Moderators: silvia, selimgunay, Moderators
-
- Posts: 8
- Joined: Tue May 23, 2017 4:25 am
- Location: NIT ROURKELA
-
- Posts: 916
- Joined: Mon Sep 09, 2013 8:50 pm
- Location: University of California, Berkeley
Re: Recorder file not generating ???
It looks like you have an unclosed bracket in the last two for loops
-
- Posts: 8
- Joined: Tue May 23, 2017 4:25 am
- Location: NIT ROURKELA
Re: Recorder file not generating ???
Thank you so much. it is all right now