cmo/readatt/mo_name/attr_name1/[attr_name2..]operation/filenamecmo_name is type character, required
attr_name1 is type character, required
operation is either add which will cause new nodes to be added to the mesh object or ifirst, islast, istride which specifies the nodes whose values will be replaced.
filename is type character required and specifies the ASCII file to be read.
File parsing is set so that any line that has '#' in column is ignored.
Any line with the first word, not necessarily beginning with column one, not a real or integer is ignored.
EXAMPLES:Read x,y,z coordinates and some attributes (node_att1, node_att2) from a file of tabular data:
cmo / create / mo_name / / / tet
cmo/readatt/mo_name/ xic,yic,zic,node_att1,node_att2 / 1,0,0 / input_file
Where the input file may be a TecPlot format file something like:
TITLE="Heterogeneity of TMCM #39, 1=newzone 81, 2=newzone 82"
variables="x","y","z", "zone", "element"
zone t="facies" I=191, J=136, K= 57
0.53600E+06 0.41020E+07 0.00000E+00 2 1
0.53610E+06 0.41020E+07 0.00000E+00 2 2
0.53620E+06 0.41020E+07 0.00000E+00 2 3
In the example above, the first three lines are ignored. None of the tagged information is retained. Ignored lines can be indicated by either a # in column one or anything other than a real or integer as the first token in a line.
new nodes will be added to mo_tet2, and their coordinates will be supplied from the file. The value of nnodes will be updated.
Contents of myfile:
The values of itp1 will be replaced. If new_node_attr does not exist it will be created as a VDOUBLE node based attribute. If psetp1 contains the nodes 12, 27 and myfile has the contents: