-
-
December 14, 2019 at 4:20 pm
HollyFart
SubscriberHello,
I’m trying to implement a circle shaped heat flux with uniform (constant value) on a simple steel plate.
The circle shaped load moves along Y direction.
The circle is the result of nodes gathered from a surf element created in the first step.
Â
Model:
Step 1:
Step 2:
 Code:
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.005Â Â Â Â Â Â Â Â Â ! 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,0.005Â Â Â ! 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,,1000Â Â ! 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,0.005Â Â Â ! 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,,1000Â Â Â Â ! Apply hflux based on your calculation at the said time
allsel,all
outres,all,all
Â
Â
Something is missing, there is no flux applied on the SURF152 thermal elements.
Do I use an improper surf element?
Best regards,
HF
-
- The topic ‘Implement a moving heat flux load (circle area) in Ansys Workbench via APDL command’ is closed to new replies.
-
3597
-
1283
-
1107
-
1068
-
983
© 2025 Copyright ANSYS, Inc. All rights reserved.