# Print Command
This command is used to print output to screen or file.
To print all objects of the domain:
```tcl print <-file $fileName> ```To print all objects of the domain to a JSON file:
```tcl print -JSON -file $fileName ```To print node information:
```tcl print <-file $fileName> -node <-flag $flag> <$node1 $node2 ...> ```To print element information:
```tcl print <-file $fileName> -ele <-flag $flag> <$ele1 $ele2 ...> ```
|
(optional) name of file to which data will be sent. overwrites existing file. default is to print to stderr) |
|
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. |
print -ele; # print all elements
print -node 1 2 3; # print data for nodes 1,2 & 3
Code Developed by: fmk