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,Tutorial7B
/TITLE, Thermal Stress
/PREP7

!!! Element properties !!!


! Define element type #1 as PLANE183

!!! Material properties !!!


MP, EX, 1, 3E4 ! Elastic modulus of material #1 is 3e4
MP, PRXY, 1, 0.3 ! Poisson's ratio of material #1 is 0.3
MP, ALPX, 1, 10.3E-6 ! Coeff. thermal expansion (ALPX) of mat #1 is 10.3e-6

MP, EX, 2, 2.5E3 ! Elastic modulus of material #2 is 2.5e3


MP, PRXY, 2, 0.3 ! Poisson's ratio of material #2 is 0.3
MP, ALPX, 2, 100E-6 ! Coeff. thermal expansion (ALPX) of mat #2 is 100e-6

!!! Geometry !!!


K, 1, 0, 0 ! Create keypoint #1 at 0,0
K, 2, 9.5, 0 ! ...
K, 3, 12.5, 0 ! ...
K, 4, 0, 1.6 ! ...
K, 5, 9.5, 1.6 ! ...
K, 6, 12.5, 1.6 ! ...
K, 7, 0, 3.2 ! ...
K, 8, 9.5, 3.2 ! ...
K, 9, 12.5, 3.2 ! Create keypoint #9 at 12.5, 3.2

L, 1, 2 ! Create line between keypoints #1 and #2


L, 2, 3 ! ...
L, 4, 5 ! ...
L, 5, 6 ! ...
L, 7, 8 ! ...
L, 8, 9 ! ...
L, 1, 4 ! ...
L, 2, 5 ! ...
L, 3, 6 ! ...
L, 4, 7 ! ...
L, 5, 8 ! ...
L, 6, 9 ! Create line between keypoints #6 and #9

AL, 1, 8, 3, 7 ! Create area from lines #1, #8, #3, #7


AL, 2, 9, 4, 8 ! ...
AL, 3, 11, 5, 10 ! ...
AL, 4, 12, 6, 11 ! ...

!!! Meshing !!!


! Select area #1
AATT,[...] ! Associate material 1 with the selected area

! Select everything
! Unselect area #1 (leaving areas #2-4 selected)
AATT,[...] ! Associate material 2 with the selected areas

! Select left inside line (#3)


! Set number of element divisions on all selected lines
to 12

! Select other three inside lines (#4, 8, 11)


! ...
! ...
! Set number of element divisions on all selected lines
to 4

! Select everything
MSHKEY,[...] ! Specify mapped mesh to be used (Mesh key = 1)
! Mesh all areas

/PNUM,MAT,1 ! Show material numbers


EPLOT ! Plot elements

!!! Boundary conditions !!!


! Select lines at x=0
! Constrain all selected lines in x-displacement

! Select lines at y=0


! Constrain all selected lines in y-displacement

! Select everything
BFA,[...] ! Apply body force load on all selected areas as
temperature change of -150

! Select everything

!!! Solution !!!


! Enter solution processor
! Solve
! Exit solution processor

!!! Postprocessing !!!


! Enter postprocessor

! Plot deformed shape with deformed edge


PLESOL,S,1 ! Plot element 1st principal stress

You might also like