用于绘制图形的 Ansys 代码不起作用
Ansys code for plotting graphic does not work
我是 ansys 的新手,我正在尝试 运行 这段代码,它应该生成一个图形,但它没有,而且它没有 returns 任何错误.这段代码是 ansys 本身的一个例子,因此,我相信它应该 运行 没问题...
/COM,ANSYS MEDIA REL. 10.0 (05/31/2005) REF. VERIF. MANUAL: REL. 10.0
/VERIFY,VM173
/PREP7
/TITLE, VM173, CENTERLINE TEMPERATURE OF AN ELECTRICAL WIRE
C*** HEAT, MASS AND MOMENTUM TRANS., ROHSENOW AND CHOI, 2ND. PR., PAGE 106,
C*** EX. 6.5, USING SOLID5 ELEMENTS
ET,1,SOLID5,1 ! SOLID5, TEMP,VOLT,MAG DOF OPTION
MP,KXX,1,13 ! THERMAL CONDUCTIVITY
MP,RSVX,1 ! ELECTRICAL RESISTIVITY
CSYS,1
N,1,1E-10,-5 ! MOVE AWAY FROM ORIGIN FOR THETA SPEC.
N,6,.03125,-5
FILL
NGEN,2,10,1,6,1,,10 ! MODEL 10 DEG. SECTOR
NGEN,2,20,1,16,1,,,-(1/12) ! ARBITRARY Z-LENGTH OF 1 INCH
NUMMRG,NODE ! MERGE COINCIDENT NODES AT ORIGIN
E,2,12,1,1,22,32,21,21 ! GENERATE ELEMENTS
E,2,3,13,12,22,23,33,32
EGEN,4,1,2
CP,1,TEMP,1,21 ! COUPLING TO ENSURE AXIAL SYMMETRY
CP,2,TEMP,2,12,22,32 ! COUPLING TO ENSURE CIRCUMFERENTIAL SYMMETRY
CPSGEN,5,1,2
NSEL,S,LOC,Z,0
D,ALL,VOLT,0 ! SET VOLTAGES
NSEL,INVE
D,ALL,VOLT,-(.1/12) ! .1 VOLT/FT OVER 1 IN LENGTH
NSEL,S,LOC,X,.03125
SF,ALL,CONV,5,70
NSEL,ALL
FINISH
/SOLU
SOLVE
FINISH
/POST1
NSEL,S,LOC,X,0
PRNSOL,TEMP ! RESULTS AT CENTERLINE
*GET,T,NODE,1,TEMP
NSEL,S,LOC,X,.03125
PRNSOL,TEMP ! RESULTS AT OUTER RADIUS
*GET,TEMP,NODE,6,TEMP ! GET TEMPERATURE AT SURFACE NODE
PI=2*ASIN(1)
LENG=2*(0.375/12)*SIN(PI/36) ! LENGTH ALONG 10 DEG ON OUTER FACE
AREA=LENG*36 ! COMPUTE AREA OF OUTER FACE (360 DEG)
HRATE=AREA*5.0*(TEMP-70) ! TOTAL HEAT DISSIPATION RATE
*status,parm ! SHOW PARAMETER STATUS
*DIM,LABEL,CHAR,3,2
*DIM,VALUE,,3,3
LABEL(1,1) = 'T(CL) ','T(S) ','Q '
LABEL(1,2) = 'DEG F','DEG F','BTU/hr/ft'
*VFILL,VALUE(1,1),DATA,419.9,417.9,341.5
*VFILL,VALUE(1,2),DATA,T,TEMP,HRATE
*VFILL,VALUE(1,3),DATA,ABS(T/419.9),ABS(TEMP/417.9),ABS(HRATE/341.5)
/COM
/OUT,vm173,vrt
/COM,------------------- VM173 RESULTS COMPARISON -------------
/COM,
/COM, | TARGET | ANSYS | RATIO
/COM,
*VWRITE,LABEL(1,1),LABEL(1,2),VALUE(1,1),VALUE(1,2),VALUE(1,3)
(1X,A8,A8,' ',F10.1,' ',F10.1,' ',1F5.3)
/COM,----------------------------------------------------------
/OUT
FINISH
*LIST,vm173,vrt
我做错了什么??
代码不生成绘图。它生成的是一个名为 vm173.vrt 的文件。文件中的结果:
------------------- VM173 RESULTS COMPARISON -------------
| TARGET | ANSYS | RATIO
T(CL) DEG F 419.9 70.0 0.167
T(S) DEG F 417.9 70.0 0.168
Q BTU/hr/f 341.5 0.0 0.000
----------------------------------------------------------
我是 ansys 的新手,我正在尝试 运行 这段代码,它应该生成一个图形,但它没有,而且它没有 returns 任何错误.这段代码是 ansys 本身的一个例子,因此,我相信它应该 运行 没问题...
/COM,ANSYS MEDIA REL. 10.0 (05/31/2005) REF. VERIF. MANUAL: REL. 10.0
/VERIFY,VM173
/PREP7
/TITLE, VM173, CENTERLINE TEMPERATURE OF AN ELECTRICAL WIRE
C*** HEAT, MASS AND MOMENTUM TRANS., ROHSENOW AND CHOI, 2ND. PR., PAGE 106,
C*** EX. 6.5, USING SOLID5 ELEMENTS
ET,1,SOLID5,1 ! SOLID5, TEMP,VOLT,MAG DOF OPTION
MP,KXX,1,13 ! THERMAL CONDUCTIVITY
MP,RSVX,1 ! ELECTRICAL RESISTIVITY
CSYS,1
N,1,1E-10,-5 ! MOVE AWAY FROM ORIGIN FOR THETA SPEC.
N,6,.03125,-5
FILL
NGEN,2,10,1,6,1,,10 ! MODEL 10 DEG. SECTOR
NGEN,2,20,1,16,1,,,-(1/12) ! ARBITRARY Z-LENGTH OF 1 INCH
NUMMRG,NODE ! MERGE COINCIDENT NODES AT ORIGIN
E,2,12,1,1,22,32,21,21 ! GENERATE ELEMENTS
E,2,3,13,12,22,23,33,32
EGEN,4,1,2
CP,1,TEMP,1,21 ! COUPLING TO ENSURE AXIAL SYMMETRY
CP,2,TEMP,2,12,22,32 ! COUPLING TO ENSURE CIRCUMFERENTIAL SYMMETRY
CPSGEN,5,1,2
NSEL,S,LOC,Z,0
D,ALL,VOLT,0 ! SET VOLTAGES
NSEL,INVE
D,ALL,VOLT,-(.1/12) ! .1 VOLT/FT OVER 1 IN LENGTH
NSEL,S,LOC,X,.03125
SF,ALL,CONV,5,70
NSEL,ALL
FINISH
/SOLU
SOLVE
FINISH
/POST1
NSEL,S,LOC,X,0
PRNSOL,TEMP ! RESULTS AT CENTERLINE
*GET,T,NODE,1,TEMP
NSEL,S,LOC,X,.03125
PRNSOL,TEMP ! RESULTS AT OUTER RADIUS
*GET,TEMP,NODE,6,TEMP ! GET TEMPERATURE AT SURFACE NODE
PI=2*ASIN(1)
LENG=2*(0.375/12)*SIN(PI/36) ! LENGTH ALONG 10 DEG ON OUTER FACE
AREA=LENG*36 ! COMPUTE AREA OF OUTER FACE (360 DEG)
HRATE=AREA*5.0*(TEMP-70) ! TOTAL HEAT DISSIPATION RATE
*status,parm ! SHOW PARAMETER STATUS
*DIM,LABEL,CHAR,3,2
*DIM,VALUE,,3,3
LABEL(1,1) = 'T(CL) ','T(S) ','Q '
LABEL(1,2) = 'DEG F','DEG F','BTU/hr/ft'
*VFILL,VALUE(1,1),DATA,419.9,417.9,341.5
*VFILL,VALUE(1,2),DATA,T,TEMP,HRATE
*VFILL,VALUE(1,3),DATA,ABS(T/419.9),ABS(TEMP/417.9),ABS(HRATE/341.5)
/COM
/OUT,vm173,vrt
/COM,------------------- VM173 RESULTS COMPARISON -------------
/COM,
/COM, | TARGET | ANSYS | RATIO
/COM,
*VWRITE,LABEL(1,1),LABEL(1,2),VALUE(1,1),VALUE(1,2),VALUE(1,3)
(1X,A8,A8,' ',F10.1,' ',F10.1,' ',1F5.3)
/COM,----------------------------------------------------------
/OUT
FINISH
*LIST,vm173,vrt
我做错了什么??
代码不生成绘图。它生成的是一个名为 vm173.vrt 的文件。文件中的结果:
------------------- VM173 RESULTS COMPARISON -------------
| TARGET | ANSYS | RATIO
T(CL) DEG F 419.9 70.0 0.167
T(S) DEG F 417.9 70.0 0.168
Q BTU/hr/f 341.5 0.0 0.000
----------------------------------------------------------