Ansys Learning Forum › Forums › Discuss Simulation › Preprocessing › APDL how to select individual volume after VROTAT command › Reply To: APDL how to select individual volume after VROTAT command
July 4, 2023 at 9:14 pm
JUNBO YANG
Subscriber
The code is attached. How to decide the offset value? Is there a rule?
For example, to select 1+2, 'VSEL,S,LOC,X,0,B-S_offset*8' works but 'VSEL,S,LOC,X,0,B-S_offset*7' didn't work.
FINISH
/clear
/prep7
A=23.5
B=35
C=37.5
D=42
/VIEW,1,1,1,1
BLC4,0,0,A,10
BLC4,0,0,B,10
BLC4,0,0,C,10
BLC4,0,0,D,10
AOVLAP,ALL
ALLS
NUMMRG,ALL
NUMCMP,ALL
ALLS
VROTAT,ALL,,,,,,1,4,90
S_offset=1
CSYS,5
VSEL,S,LOC,X,0,A-S_OFFSET*2
VPLOT
CSYS,5
VSEL,S,LOC,X,0,B-S_offset*8
VPLOT
CSYS,5
VSEL,S,LOC,X,0,C-s_offset*8
VPLOT
CSYS,5
VSEL,S,LOC,X,0,D
VPLOT
For example, to select 1+2, 'VSEL,S,LOC,X,0,B-S_offset*8' works but 'VSEL,S,LOC,X,0,B-S_offset*7' didn't work.
FINISH
/clear
/prep7
A=23.5
B=35
C=37.5
D=42
/VIEW,1,1,1,1
BLC4,0,0,A,10
BLC4,0,0,B,10
BLC4,0,0,C,10
BLC4,0,0,D,10
AOVLAP,ALL
ALLS
NUMMRG,ALL
NUMCMP,ALL
ALLS
VROTAT,ALL,,,,,,1,4,90
S_offset=1
CSYS,5
VSEL,S,LOC,X,0,A-S_OFFSET*2
VPLOT
CSYS,5
VSEL,S,LOC,X,0,B-S_offset*8
VPLOT
CSYS,5
VSEL,S,LOC,X,0,C-s_offset*8
VPLOT
CSYS,5
VSEL,S,LOC,X,0,D
VPLOT