CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

ansys command * get help

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2016, 08:18
Default ansys command * get help
  #1
New Member
 
davide ilmigliore
Join Date: May 2016
Posts: 1
Rep Power: 0
aiace is on a distinguished road
Hi, I created a template using a heatsink ansys APDL , and I calculated the thermal solutions in the event that this heat sink to dissipate heat by convection and conduction and then I calculated the mechanical solution . Then I wanted to ask how I can extract such as the von mises tension through function * get and write this value in a txt file. I also want to extract the value of the temperature and the higher the value of the highest voltage , and write it on a txt file. I have tried using the following code , but it tells me error enough date format ... __________________________________________________ ______ * GET , x , PLNSOL , 0 , max , , , * Cfopen , ' s ' , ' txt ' ,, append * Vwrite , x finish
__________________________________________________ ________

The code around the program without the get function is:
finish
/clear
/filname,dissipatore
/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,adduzione,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,b-ba,,,


asba,2,4

aadd,5,3

aglue,1,2

asel,s,area,,1
aatt,1,,1,0,

allsel,all

asel,s,area,,3
aatt,2,,1,0,

allsel,all

aesize,all,ba/5,

!Bisogna assegnare gli elementi alle aree: andare su meshing-->mesh attributes-->picked areas--> seleziono l'area 1
!e gli assegno l'elemento 2 plane55 e faccio lo stesso con l'area 2

amesh,all

SFL,2,HFLUX,(60*2)/(0.05*0.05),

SFL,7,CONV,adduzione, ,temp,
SFL,10,CONV,adduzione, ,temp,
SFL,11,CONV,adduzione, ,temp,
SFL,12,CONV,adduzione, ,temp,

finish

/sol

solve
finish

/post1

plnsol,temp,,0


!fine parte termica
!inizio parte meccanica

finish
/prep7

lsclear,all

etchg,tts

mptemp,,,,,,,,
mptemp,1,0
uimp,1,reft,,,20
mpdata,alpx,1,,12.5e-6
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,biso,2,1,2,
tbtemp,0
tbdata,,60e6,2200e6,,,,
tb,biso,1,1,2,
tbtemp,0
tbdata,,60e6,1380e6,,,,

dl,4, ,ux,0
dl,1,,uy,0
dl,5,,uy,0
dl,9,,uy,0

lsel,s,line,,3
lsel,a,line,,12
nsll,s,1

!FARE MANUALMENTE: solution-define loads-apply-structural-displacement-on nodes-all-uy

!!cp,1,ux,all

allsel,all

ldread,temp,,, , ,'dissipatore','rth',' '

finish

/sol


AUTOTS,1
TIME,1
SOLVE
aiace is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro/E to ANSYS Parameterization Guide Trues ANSYS 4 April 18, 2018 05:52
Can you help me with a problem in ansys static structural solver? sourabh.porwal Structural Mechanics 0 March 27, 2016 17:07
Ansys SIG$ILL error loth ANSYS 3 December 24, 2015 05:31
2-way FSI in Ansys CFX 15 LucasGasparino CFX 3 August 6, 2015 03:17
Exporting results from CFX to ANSYS ?? sohail ahmed CFX 1 December 20, 2007 01:10


All times are GMT -4. The time now is 14:47.