Print Command: Difference between revisions

From OpenSeesWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{CommandManualMenu}}
This command is used to print output.
This command is used to print output.


Line 9: Line 12:


To print node information:
To print node information:


{|  
{|  
| style="background:yellow; color:black; width:800px" | '''print <$fileName> -node <-flag $flag> <$node1 $node2 ...>'''
| style="background:yellow; color:black; width:800px" | '''print <$fileName> -node <-flag $flag> <$node1 $node2 ...>'''
|}
|}


To print element information:
To print element information:


{|  
{|  
| style="background:yellow; color:black; width:800px" | '''print <$fileName> -ele <-flag $flag> <$ele1 $ele2 ...>'''
| style="background:yellow; color:black; width:800px" | '''print <$fileName> -ele <-flag $flag> <$ele1 $ele2 ...>'''
|}
|}


----
----
Line 35: Line 34:
|  '''$ele1 $ele2 ..''' || (optional) integer tags of elements to be printed. default is to print all.
|  '''$ele1 $ele2 ..''' || (optional) integer tags of elements to be printed. default is to print all.
|}
|}


EXAMPLE:
EXAMPLE:
Line 41: Line 41:


print -node 1 2 3; # print data for nodes 1,2 & 3
print -node 1 2 3; # print data for nodes 1,2 & 3


----
----


Code Developed by: <span style="color:blue"> fmk </span>
Code Developed by: <span style="color:blue"> fmk </span>

Revision as of 05:02, 27 February 2010





This command is used to print output.

To print all objects of the domain:

print <$fileName>


To print node information:

print <$fileName> -node <-flag $flag> <$node1 $node2 ...>

To print element information:

print <$fileName> -ele <-flag $flag> <$ele1 $ele2 ...>

$fileName (optional) name of file to which data will be sent. overwrites existing file. default is to print to stderr)
$flag integer flag to be sent to the print() method, depending on the node and element type (optional)
$node1 $node2 .. (optional) integer tags of nodes to be printed. default is to print all.
$ele1 $ele2 .. (optional) integer tags of elements to be printed. default is to print all.


EXAMPLE:

print -ele; # print all elemenmts

print -node 1 2 3; # print data for nodes 1,2 & 3


Code Developed by: fmk