Encapsulate APDL macros
! APDL_script_for_convection.inp
/prep7
thickness = 0.001
film_coefficient = 200.
temperature = 120
cmsel,s,component
*GET,n_el,ELEM,0,num,max
*GET,mat1, ELEM,n_el,ATTR,MAT
et,100,152
keyop,100,8,2.
et,1001,131
keyo,1001,3,2
sectype,1001,shell
secdata,thickness,mat1
secoff,mid
emodif,all,type,1001
emodif,all,secnum,1001
type,100
esurf
fini
alls
/solu
esel,s,type,,100
nsle
sf,all,conv,film_coefficient,temperature
allsel, all
APDL
Workbench Mechanical
Customization
❑ Give non-expert users access to
advanced, customer specific models and
securing the know-how of the company's
experts
❑ No need for end users to know APDL
❑ Geometry scoping from graphics view
(interactive)
❑ Units management
❑ Improved robustness – no risk of locally
edited APDL scripts!