summaryrefslogtreecommitdiff
path: root/tests/examplefiles/apdl/example1apdl.ans
blob: 232dbd7a6dc20589ac92b7628042511dc9bd6e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
finish
/clear

/title, Thermal Stress Example
/prep7					! Enter preprocessor
*VOPER,test

k,1,0,0					! Keypoints
k,2,1,0

l,1,2					! Line connecting keypoints

et,1,link33				! Element type
r,1,4e-4,				! Area
mp,kxx,1,60.5				! Thermal conductivity

esize,0.1				! Element size
lmesh,all				! Mesh line
physics,write,thermal			! Write physics environment as thermal
physics,clear				! Clear the environment


etchg,tts				! Element type				
mp,ex,1,200e9				! Young's modulus
mp,prxy,1,0.3				! Poisson's ratio
mp,alpx,1,12e-6				! Expansion coefficient
physics,write,struct			! Write physics environment as struct
physics,clear
finish

/solu					! Enter the solution phase
antype,0				! Static analysis
physics,read,thermal			! Read in the thermal environment
dk,1,temp,348				! Apply a temp of 75 to keypoint 1

solve
finish

/solu					! Re-enter the solution phase
physics,read,struct			! Read in the struct environment

ldread,temp,,,,,,rth			! Apply loads derived from thermal environment
tref,273

dk,1,all,0				! Apply structural constraints
dk,2,UX,0

solve
finish

/post1					! Enter postprocessor
etable,CompStress,LS,1			! Create an element table for link stress
PRETAB,CompStress			! Print the element table