Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Implement a do loop in Ansys Workbench 16 for uniform circle shaped pressure load Reply To: Implement a do loop in Ansys Workbench 16 for uniform circle shaped pressure load

HollyFart
Subscriber

All steps:


H_Flux=1000


Radius=0.003


 


Step 1:


/prep7                                 ! Enter into /prep7 as ET and ESURF are valid only in /PREP7


et,101,152                          ! Create a new element type for SURF152                


cmsel,s,surface1                ! Select nodes on a face via Face named selection


type,101                             ! Set the element type as 101


esurf                                   ! Create surface effect elements on the selected nodes


allsel,all                              ! Select everything back  


/solu                                   ! Re-enter /SOLU


 


wpcs,-1,0                     ! WP @ GLOBAL ORIGIN


wpof,,0                        ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)


cswp,11,1                     ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN


esel,s,ename,,152         ! Select SURF152 elements 


sfed,all,,hflux               ! Delete old flux if any


nsle                               ! Select nodes attached to selected SURF elements


nsel,r,loc,x,0,radius      ! Select nodes within radius of circle, 0.005m


csys,0                            ! Set CSYS back to global


esln,r                              ! Select SURF elements attached to the nodes within the circle


sfe,all,,hflux,,H_flux      ! Apply hflux based on your calculation at the said time


allsel,all


outres,all,all


 


Step 2:


 


wpcs,-1,0                    ! WP @ GLOBAL ORIGIN


wpof,,0.01                   ! OFFSET WP ALONG ITS Y AXIS (i.e. provide current position of center of circle along Y axis)


cswp,11,1                    ! DEFINE Cylindrical COORDINATE SYSTEM @ WP ORIGIN


esel,s,ename,,152       ! Select SURF152 elements 


sfed,all,,hflux               ! Delete old flux if any


nsle                              ! Select nodes attached to selected SURF elements


nsel,r,loc,x,0,radius     ! Select nodes within radius of circle, 0.005m


csys,0                          ! Set CSYS back to global


esln,r                           ! Select SURF elements attached to the nodes within the circle


sfe,all,,hflux,,H_flux       ! Apply hflux based on your calculation at the said time


allsel,all


outres,all,all


[bingo_chatbox]