In Ansys APDL, the default title of the curve is COL1 and COL2, which can be modified with the command/gcolumn, in the following format:
/gcolumn XXX
XXX represents a new curve title, the length of this title should be less than or equal to 8 characters, such as XXX = str1, or string01, str1 character length is 4,string01 character length is 8, all ≤8, so all meet the conditions. The above command can also be abbreviated as:
/gcol XXX
Here, take Shuzhu3.txt as an example, use/gcol to modify the title name, modify it to STRING01 and string02, the detailed APDL code is as follows:
Shuzhu3.txt
/gcol,1, String01/gcol,2, string02*DIMXxxArray,Ten*DIM, YYY,Array,Ten,2*SET, XXX (1,1),1e6*SET, XXX (2,1),1e6+1e5*SET, XXX (3,1),1e6+2e5*SET, XXX (4,1),1e6+3e5*SET, XXX (5,1),1e6+4e5*SET, XXX (6,1),1e6+5e5*SET, XXX (7,1),1e6+6e5*SET, XXX (8,1),1e6+7e5*SET, XXX (9,1),1e6+8e5*SET, XXX (Ten,1),1e6+9e5*SET, YYY (1,1),1*SET, YYY (2,1),4*SET, YYY (3,1),9*SET, YYY (4,1), -*SET, YYY (5,1), -*SET, YYY (6,1), $*SET, YYY (7,1), the*SET, YYY (8,1), -*SET, YYY (9,1),Bayi*SET, YYY (Ten,1), -*SET, YYY (1,2),1*SET, YYY (2,2),2*SET, YYY (3,2),3*SET, YYY (4,2),4*SET, YYY (5,2),5*SET, YYY (6,2),6*SET, YYY (7,2),7*SET, YYY (8,2),8*SET, YYY (9,2),9*SET, YYY (Ten,2),Ten*vplo,xxx (1,1), YYY (1,1),2
The effect is as follows:
Figure (1) Change the title of the curve to: String01 and STRING02
With do loops, it is more concise:
Shuzhu3b.txt
/gcol,1, String01/gcol,2, string02*dim, Xxx,array,Ten *dim, Yyy,array,Ten,2 *doI1,TenXXX (I,1) =1e6+ (I-1)*1e5YYY (I,1) = I*iYYY (I,2) = I*enddo*vplo, XXX (1,1), YYY (1,1),2
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Modify the title of a curve