You are on page 1of 2

!!! Reverse Video !!!

/RGB,INDEX,100,100,100, 0
/RGB,INDEX, 80, 80, 80,13
/RGB,INDEX, 60, 60, 60,14
/RGB,INDEX, 0, 0, 0,15
/REPLOT

FINISH
/CLEAR
/FILNAME,Tutorial7A
/TITLE, Temperature Distribution in a Cylinder
/PREP7

!!! Element properties !!!


ET, 1, PLANE77 ! Define element type #1 as PLANE77

!!! Material properties !!!


MP, KXX, 1, 8.09E-4 ! Thermal conductivity (KXX) of material #1 is 8.09e-4

!!! Geometry !!!


CYL4, 0, 0, 5, 0, 10, 90 ! Create partial annulus, IR=5, OR=10, quarter circle
(0-90 degrees)

!!! Meshing !!!


LSEL,S,RADIUS,,5 ! Select interior surface (inner curved line, radius=5)
LSEL,A,RADIUS,,10 ! Also select exterior surface (outer curved line,
radius=10)
LESIZE,ALL,,,8 ! Set number of element divisions to 8

LSEL,S,LOC,Y,0 ! Select bottom line of symmetry (y=0)


LSEL,A,LOC,X,0 ! Also select left line of symmetry (x=0)
LESIZE,ALL,,,5 ! Set number of element divisions to 5

ALLSEL ! Select everything


MSHKEY,1 ! Specify mapped mesh to be used (Mesh key = 1)
AMESH,ALL ! Mesh all areas

!!! Boundary conditions !!!


LSEL,S,RADIUS,,5 ! Select interior surface (inner curved line, radius=5)
DL,ALL,,TEMP,75 ! Apply DOF constraint on all selected lines of
temperature=75

LSEL,S,RADIUS,,10 ! Select exterior surface (outer curved line, radius=10)


SFL,ALL,CONV,2E-4,,40 ! Apply surface load to all selected lines of convection
...
! ... film coefficient=2e-4
and bulk temperature=40 (One command)

LSEL,S,LOC,Y,0 ! Select bottom line of symmetry (y=0)


LSEL,A,LOC,X,0 ! Also select left line of symmetry (x=0)
SFL,ALL,HFLUX,0 ! Apply surface load to all selected lines of heat
flux=0

ALLSEL ! Select everything

!!! Solution !!!


/SOLU ! Enter solution processor
SOLVE ! Solve
FINISH ! Exit solution processor
!!! Postprocessing !!!
/POST1 ! Enter postprocessor

PLNSOL,TEMP ! Plot nodal temperatues

You might also like