hello everyone, hello vesna,
I have another problem.I get a strain in every load step, how can I write these strain in an out file?
I write this command:
set outFileID [open data/strain.out w]
puts $outFileID $strain
But finally when i open the strain.out file, I only get the strain of the first load step. what is wrong? Can you give me an example again? Thank you for your help.
how can I write these data in an out file?
Moderators: silvia, selimgunay, Moderators
-
- Posts: 26
- Joined: Sun Aug 16, 2009 11:30 pm
- Location: beijing jiaotong university
-
- Posts: 26
- Joined: Sun Aug 16, 2009 11:30 pm
- Location: beijing jiaotong university
Dear vesna,
thank you for your help.
set outFileID [open filetoread.out "r"]
set b [read $outFileID]
close $outFileID
set a [lindex $b 1]
puts "a is $a"
Through the above command, I can get the second data "a" in the first lode step. That puts "a is $a" is putting out to the screen, if I want to write it in a new out file "strain.out", how to do it? And the next load step, I get the filetoread.out again, and get a second data "a" again from the filetoread.out, I want write it in this strain.out again. Finally, in the strain.out file, I can get all second data "a" from the filetoread.out generated from every load step. How to do it? Thank you.
Best regards
cicilixiaoran
thank you for your help.
set outFileID [open filetoread.out "r"]
set b [read $outFileID]
close $outFileID
set a [lindex $b 1]
puts "a is $a"
Through the above command, I can get the second data "a" in the first lode step. That puts "a is $a" is putting out to the screen, if I want to write it in a new out file "strain.out", how to do it? And the next load step, I get the filetoread.out again, and get a second data "a" again from the filetoread.out, I want write it in this strain.out again. Finally, in the strain.out file, I can get all second data "a" from the filetoread.out generated from every load step. How to do it? Thank you.
Best regards
cicilixiaoran
-
- Posts: 26
- Joined: Sun Aug 16, 2009 11:30 pm
- Location: beijing jiaotong university