Print Command: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
This command is used to print output. | {{CommandManualMenu}} | ||
This command is used to print output to screen or file. | |||
To print all objects of the domain: | To print all objects of the domain: | ||
{| | {| | ||
| style="background: | | style="background:lime; color:black; width:800px" | '''print <-file $fileName>''' | ||
|} | |} | ||
To print all objects of the domain to a JSON file: | |||
{| | |||
| style="background:lime; color:black; width:800px" | '''print -JSON -file $fileName''' | |||
|} | |||
To print node information: | To print node information: | ||
{| | {| | ||
| style="background: | | style="background:lime; color:black; width:800px" | '''print <-file $fileName> -node <-flag $flag> <$node1 $node2 ...>''' | ||
|} | |} | ||
To print element information: | To print element information: | ||
{| | {| | ||
| style="background: | | style="background:lime; color:black; width:800px" | '''print <-file $fileName> -ele <-flag $flag> <$ele1 $ele2 ...>''' | ||
|} | |} | ||
---- | ---- | ||
Line 35: | Line 38: | ||
| '''$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: | ||
print -ele; # print all | print -ele; # print all elements | ||
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> |
Latest revision as of 20:55, 28 January 2018
- Command_Manual
- Tcl Commands
- Modeling_Commands
- model
- uniaxialMaterial
- ndMaterial
- frictionModel
- section
- geometricTransf
- element
- node
- sp commands
- mp commands
- timeSeries
- pattern
- mass
- block commands
- region
- rayleigh
- Analysis Commands
- Output Commands
- Misc Commands
- DataBase Commands
This command is used to print output to screen or file.
To print all objects of the domain:
print <-file $fileName> |
To print all objects of the domain to a JSON file:
print -JSON -file $fileName |
To print node information:
print <-file $fileName> -node <-flag $flag> <$node1 $node2 ...> |
To print element information:
print <-file $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 elements
print -node 1 2 3; # print data for nodes 1,2 & 3
Code Developed by: fmk