aiace
Guest
Hello, I created a model of a heat sink by ansys apdl, and I calculated the thermal solutions in case this heat dissipator dissipi for convection and conduction and then I calculated the mechanical solution.
first I wanted to ask you but the plot nodal temperatures, plots the temperature to the knots with the tensions that are generated due to the heat gradient?
then I wanted to ask you how I can extract for example the voltage of von mises through the *get function and write this value in a txt file.
I would also like to extract the highest temperature value and the highest voltage value, and write them on a txt file.
I tried to use the following code, but it tells me error enough data format.. .
_
*get,x, plnsol, 0, max, ,
*cfopen,'s,'txt',, append
*vwrite,x
finish
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
the code of all the program without the get function is the following:
finish
_
/filname,dissipator
/prep7
*set,b,0.0045
*set,h,0.05
*set,ba,0.002
*set,h,0.070
*set,ba,0.0005
*set,b,0.001
*set,adduction,45
*set,temp,40
et,2,plane55
!
!
mptemp,,,
mptemp,1,0
mpdata,kxx,1,365
mptemp,,,
mptemp,1,0
mpdata,kxx,2,,180
rectng,0,0.004,0,b,
rectng,0.004,0.008+b-ba,0,b,
rectng,0.008+b-ba,h,0,ba,
cyl4,0.008+b-ba,b-ba,,
asba,2,4
aadd,5,3
aglue,1,2
asel,s,area,1
aatt,1,0,
Allsel,all
asel,s,area,3
aatt,2,,1,0,
Allsel,all
aesize,all,ba/5,
!you must assign the elements to the areas: go to meshing-->mesh attributes-->picked areas--> select area 1
!and I'll check the element 2 plane55 and do the same with area 2
amesh,all
(60*2)/(0.05*0.05),
♪
♪
♪
♪
finish
/sol
The
finish
/posts
plnsol,temp,0
End thermal part
Mechanical start
finish
/prep7
Isclear, all
etchg,tts
mptemp,,,
mptemp,1,0
Uimp,1,reft,20
I'm sorry.
mptemp,,,
mptemp,1,0
uimp,2,reft,,20
mpdata,alpx,2,,24.2e-6
mptemp,,,
mptemp,1,0
mpdata,ex,1,110e9
mpdata,prxy,1,0.35
mptemp,1,0
mpdata,ex,2,,68.9e9
mpdata,prxy,2,,0.33
tb, need,2,1,2,
Tbtemp,0
tbdata, 60e6,2200e6,,,
tb,need,1,2
Tbtemp,0
♪
dl,4, ,ux,0
dl,1,uy,0
dl,5,uy,0
dl,9,uy,0
lsel,s,line,3
Isel,a,line,12
♪
!dore manually: solution-define loads-apply-structural-displacement-on nodes-all-uy
!
Allsel,all
ldread,temp,, ,'dissipatore','rth', '
finish
/sol
autots,1
time,1
The
first I wanted to ask you but the plot nodal temperatures, plots the temperature to the knots with the tensions that are generated due to the heat gradient?
then I wanted to ask you how I can extract for example the voltage of von mises through the *get function and write this value in a txt file.
I would also like to extract the highest temperature value and the highest voltage value, and write them on a txt file.
I tried to use the following code, but it tells me error enough data format.. .
_
*get,x, plnsol, 0, max, ,
*cfopen,'s,'txt',, append
*vwrite,x
finish
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
the code of all the program without the get function is the following:
finish
_
/filname,dissipator
/prep7
*set,b,0.0045
*set,h,0.05
*set,ba,0.002
*set,h,0.070
*set,ba,0.0005
*set,b,0.001
*set,adduction,45
*set,temp,40
et,2,plane55
!
!
mptemp,,,
mptemp,1,0
mpdata,kxx,1,365
mptemp,,,
mptemp,1,0
mpdata,kxx,2,,180
rectng,0,0.004,0,b,
rectng,0.004,0.008+b-ba,0,b,
rectng,0.008+b-ba,h,0,ba,
cyl4,0.008+b-ba,b-ba,,
asba,2,4
aadd,5,3
aglue,1,2
asel,s,area,1
aatt,1,0,
Allsel,all
asel,s,area,3
aatt,2,,1,0,
Allsel,all
aesize,all,ba/5,
!you must assign the elements to the areas: go to meshing-->mesh attributes-->picked areas--> select area 1
!and I'll check the element 2 plane55 and do the same with area 2
amesh,all
(60*2)/(0.05*0.05),
♪
♪
♪
♪
finish
/sol
The
finish
/posts
plnsol,temp,0
End thermal part
Mechanical start
finish
/prep7
Isclear, all
etchg,tts
mptemp,,,
mptemp,1,0
Uimp,1,reft,20
I'm sorry.
mptemp,,,
mptemp,1,0
uimp,2,reft,,20
mpdata,alpx,2,,24.2e-6
mptemp,,,
mptemp,1,0
mpdata,ex,1,110e9
mpdata,prxy,1,0.35
mptemp,1,0
mpdata,ex,2,,68.9e9
mpdata,prxy,2,,0.33
tb, need,2,1,2,
Tbtemp,0
tbdata, 60e6,2200e6,,,
tb,need,1,2
Tbtemp,0
♪
dl,4, ,ux,0
dl,1,uy,0
dl,5,uy,0
dl,9,uy,0
lsel,s,line,3
Isel,a,line,12
♪
!dore manually: solution-define loads-apply-structural-displacement-on nodes-all-uy
!
Allsel,all
ldread,temp,, ,'dissipatore','rth', '
finish
/sol
autots,1
time,1
The