I do the following :
set q [list Phi1 Phi2 Phi3 Phi4 Phi5 Phi6 Phi7 Phi8 Phi9 Phi10 Phi11 Phi12 Phi13 Phi14 Phi15 Phi16 Phi17 Phi18 Phi19 Phi20 Phi21 Phi22 Phi23 Phi24 Phi25 Phi26 Phi27]
then I define my lists (from Phi1 to Phi27)
foreach l $q {
for {set i 5} {$i<17} {incr i 1} {
set fx1 [nodeEigenvector $i 1 1]
set fy1 [nodeEigenvector $i 1 2]
set frot1 [nodeEigenvector $i 1 3]
lappend $l [list $fx1]
lappend $l [list $fy1]
lappend $l [list $frot1]
}
}
Then I want to save those vector into a single file :
foreach aer $q {
for {set re 1} {$re<27} {incr re 1} {
set Mode $aer
set fo [open Modd.out a]
puts $fo [list get $Mode]
puts [list get $aer]
close $fo
}
}
This doesn't work. I get a file with a list of "get Phi1" (27 times...) to Phi27...
funny fact, when I type the command puts [list get $Phi1] I do obtain my data as expected at screen. Anyone could help me?
If there is a simpler way to do it I'd like to know too !
(I am simply trying to build, populate, then save a matrix (27 vector)).