'read' [<geo-file> ['add']]| [<ccx-file> 'inp' ['add']]| [<mesh-file> <setname>]| [<edge-file> 'edg']| [<list-file> '-n'|'-e'&<column>]This keyword is used to read commands from a file. Most commands can be read from a file but not all of them. In general all basic commands to create geometry are understood and up to know this is the only way to read pre defined geometry or a mesh during run-time. To read commands from a file like pnt, line, node, or seta and so on, type
If a mesh exists, it is possible to read files written in the result format (.frd) during runtime to define sets of nodes or elements. The command
read mesh.frd part
will create a set of the name part and all nodes and elements listed in the file mesh.frd will be added to that set. But this will NOT create or modify the nodes and elements. All nodes and elements must exist before.
It is also possible to read an ccx-input-file with loads, boundary-conditions and sets:
read filename inp
The loads and boundary-conditions are stored in automatically created sets which start wit a leading '+'. For example the ccx command '*BOUNDARY' will create '+bou' in cgx. The ccx-set-contents are stored in cgx-sets. The load-values are stored in Datasets. If the parameter ``add'' is used, then existing node- or element-numbers are not overwritten and the program choses new numbers.
In case NETGEN is used for meshing then the edges which are generated by NETGEN can be included for modifications:
read filename edg
will create beam elements based on the defined edges. When the modifications are done the beam elements can be exported in the NETGEN-edge format with the ``send setname stl'' command. See also ``How to deal with cad-geometry''.
If a file with the numbers of nodes or elements are not available in the result format (.frd) then a so called list-file could be read instead. In such a file either numbers of nodes or elements can be defined. The numbers found in a specified column is interpreted as a node- or element-number. If ``-n'' is specified the numbers are interpreted as nodes and if ``-e'' is specified the numbers are interpreted as elements. For example
read list-file.txt -e3
will define a set storing names of elements from the third column of file list-file.txt. The created set-name is always the name of the file.