Problem with node recorder
Moderators: silvia, selimgunay, Moderators
Problem with node recorder
Hello, I have a problem with node recorder, or at least I think I have a problem.
I have 1491 nodes and i would like to make a contour plot of node displacements. to obtain displacement i've used:
recorder Node -file Nodes.out -time -nodeRange 1 1491 -dof 2 disp
output is generated but instead of 1491 node values, a got 1265 node values.
any suggestion
best regards
v
I have 1491 nodes and i would like to make a contour plot of node displacements. to obtain displacement i've used:
recorder Node -file Nodes.out -time -nodeRange 1 1491 -dof 2 disp
output is generated but instead of 1491 node values, a got 1265 node values.
any suggestion
best regards
v
Re: Problem with node recorder
make sure you have 1491 nodes. use the print node to spit them all to a file and use a program like fgrep to count the number of times Node apperas.
you could also try splitting into 2 recorders just to see if you get the same number.
if a bug, you will need to send me the script. i am away from a working computer till next thurs.
you could also try splitting into 2 recorders just to see if you get the same number.
if a bug, you will need to send me the script. i am away from a working computer till next thurs.
Re: Problem with node recorder
Hello,
With the command print -node, I've noticed that there really are 1491 nodes. I wasn't that successful with fgrep but thank you for the advice
As for splitting into two record, i've put the one record form 1 to 800 and the second record from 800 to 1491 nodes to record.
First record gave me the results in 416 nodes, and the second one for 26 nodes.
I'll upload a script somehow.
Best regards
With the command print -node, I've noticed that there really are 1491 nodes. I wasn't that successful with fgrep but thank you for the advice
As for splitting into two record, i've put the one record form 1 to 800 and the second record from 800 to 1491 nodes to record.
First record gave me the results in 416 nodes, and the second one for 26 nodes.
I'll upload a script somehow.
Best regards
Re: Problem with node recorder
Hello,
I've uploaded tcl file of my stress analysis and it can be downloaded through following link:
[url]http://www.mediafire.com/view/2sch19j5c ... sVer_1.tcl[/url]
best regards
v
I've uploaded tcl file of my stress analysis and it can be downloaded through following link:
[url]http://www.mediafire.com/view/2sch19j5c ... sVer_1.tcl[/url]
best regards
v
Re: Problem with node recorder
i am on holiday with only an ipad till the 10'th. will look at it when i get back.
did you ever try using the list of nodes. just checking to see if this is a memory problem or something else.
did you ever try using the list of nodes. just checking to see if this is a memory problem or something else.
Re: Problem with node recorder
Hello,
Thank you for taking your free time to check this topic.
Yes I've tried to use the list of nodes and for every one of 1419 node i see the output in the opensees exe, if you're talking about that.
Best regards
v
Thank you for taking your free time to check this topic.
Yes I've tried to use the list of nodes and for every one of 1419 node i see the output in the opensees exe, if you're talking about that.
Best regards
v
Re: Problem with node recorder
did that option work?
Re: Problem with node recorder
i also checked the scripts you sent. it worked. when did you do the count of the number of words on a line. one possible source of your problem is that if you say source the file and then do a wc before exiting or doing a wipe you will get the incorrect answer, but only because the files have not been closed.
if you are using the most upto date version (2.4.1.1) and still get an incorrect answer let me know. the following is the script i used. if i run it w/o the wipe i get the wrong answer. i also added
a further recorder to record the all just to check that that worked as well.
proc wc fileName {
set numWord 0; set numLine 0;
set fileIn [open $fileName r]
while {[gets $fileIn line] > -1} {
regsub : $line " " words
foreach word $words {
incr numWord 1;
}
incr numLine 1
}
puts "file: $fileName numWords: $numWord numLines: $numLine"
}
source stressVer_1.tcl
wipe
wc nodes1.out
wc nodes2.out
wc nodes3.out
if you are using the most upto date version (2.4.1.1) and still get an incorrect answer let me know. the following is the script i used. if i run it w/o the wipe i get the wrong answer. i also added
a further recorder to record the all just to check that that worked as well.
proc wc fileName {
set numWord 0; set numLine 0;
set fileIn [open $fileName r]
while {[gets $fileIn line] > -1} {
regsub : $line " " words
foreach word $words {
incr numWord 1;
}
incr numLine 1
}
puts "file: $fileName numWords: $numWord numLines: $numLine"
}
source stressVer_1.tcl
wipe
wc nodes1.out
wc nodes2.out
wc nodes3.out