ywioywio
Bioengineer
- Jan 21, 2003
- 7
Dear all,
i've built a hollow cylinder which is enclosed at the lower end, and meshed it with solid186.
The model is fully constrained (ux,uy,uz=0), and i'm trying to apply a rotation of 20 to 30 degrees at the enclosed end.
however, when i tried applying the rotation (just 1 degree), enclosed end exhibit out of plane movement(did not rotate as a whole)
below is a batch file of one of the method i used, can anyone take a look at it and give me some advice
Thanks
!!!!!!!!!!!!!
!DEFINE PARAMETERS FOR CYLINDER (MM)
THK=10 !THICKNESS
EXTRAD=35 !EXTERNAL RADIUS
INTRAD=35-THK !INTERNAL RADIUS
TOPZ=0 !Z COORDINATES (CYLINDER WALL)
BOTZ=80
BASTHK=2 !Z COORDINATES (FROM BASAL)
/PREP7
ET,1,SOLID186 !ELEMENT & MATERIAL PROPERTIES
MP,NUXY,1,0.499 !APPROXIMATELY INCOMPRESSIBLE
MP,EX,1,31E-3 !MODULUS 31KPA
NUMSTR,VOLU,100 !STARTING VOLUME NO.(SEPERATE ENTITY)
CYLIND,INTRAD,EXTRAD,0,80,, !CREATE HOLLOW CYLINDER
CYLIND,EXTRAD,,(BOTZ-THK),BOTZ !CREATE APICAL CAP
NUMSTR,VOLU,50 !STARTING VOLUME NO.(AFTER VOVLAP)
BOPT,NUMB,OFF
VOVLAP,100,101
BOPT,NUMB,ON
WPROTA,,90, !ROTATE WORKPLANE (THXY,THYZ,THZX)
VSBW,ALL !SPLIT VOLUME INTO 2 BY WORKPLANE
WPROTA,,,90
NUMSTR,VOLU,1 !STARTING VOLUME NO.(AFTER BOOLEAN)
VSBW,ALL
!!!!MAPPED MESHING!!!!
LSEL,S,,,1,16,1,, !SELECT CIRCUMFERENTIAL LINES
LSEL,A,,,21,24 !CREATE 9 DIVISIONS ON SELECTED LINES
LSEL,A,,,51,53,2 !36 DIVISIONS ON CIRCUMFERENCE
LSEL,A,,,42,48,6 !EACH ELEMENT SPANS 9 DEGREE
LESIZE,ALL,,,10,,
LSEL,ALL
LSEL,S,,,19,25,6 !WALL THICKNESS DEFINED BY 4 ELEMENTS
LSEL,A,,,27,28 !EACH ELEMENT WITH EQUAL THICKNESS
LSEL,A,,,54,63,3 !2.5MM EACH ACROSS WALL TRANSMURALLY
LSEL,A,,,20,26,6
LSEL,A,,,56,59,3
LESIZE,ALL,,,4,,
LSEL,ALL
LSEL,S,,,33,39,6 !SELECT VERTICAL LINES
LSEL,A,,,44,58,14 !CREATE 16 DIVISIONS EQUALLY
LSEL,A,,,34,40,6 !ACROSS HEIGHT OF HOLLOW CYLINDER
LSEL,A,,,52,55,3 !EACH ELEMENT IS 5MM IN THICKNESS
LESIZE,ALL,,,2,,
LSEL,ALL
LSEL,S,,,35,38
LSEL,A,,,61,62
LSEL,A,,,64,65
LESIZE,ALL,,,14,,
LSEL,ALL
MSHAPE,0 !HEXAHEDRA SHAPED ELEMENTS
MSHKEY,1 !MAPPED MESHING
VMESH,ALL !MESH ALL VOLUMES
/SOLU
!!!!APPLY BOUNDARY CONDITIONS!!!!
ASEL,S,LOC,Z,0 !SELECT NODES ATTACHED TO
NSLA,R,1 !BASAL SURFACE
D,ALL,ALL !FULLY CONSTRAINED AT BASAL TOP
ASEL,ALL
NSEL,ALL
!!!!APPLY APICAL ROTATION!!!!
CSYS,1 !CYLINDRICAL COORDINATE SYSTEM
*AFUN,DEG !DEGREES
DRT=5 !DRT EQUALS 5 DEGREES
VSEL,S,,,7 !WALL AT 1ST QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,DRT,90
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD-EXTRAD*COS(DRT)
D,ALL,UY,-EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,5 !WALL AT 2ND QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,90+DRT,180
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD-EXTRAD*COS(DRT)
D,ALL,UY,EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,6 !WALL AT 3RD QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,180+DRT,270
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD*COS(DRT)-EXTRAD
D,ALL,UY,EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,8 !WALL AT 4TH QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,270+DRT,360
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD*COS(DRT)-EXTRAD
D,ALL,UY,-EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,ALL
SOLVE
i've built a hollow cylinder which is enclosed at the lower end, and meshed it with solid186.
The model is fully constrained (ux,uy,uz=0), and i'm trying to apply a rotation of 20 to 30 degrees at the enclosed end.
however, when i tried applying the rotation (just 1 degree), enclosed end exhibit out of plane movement(did not rotate as a whole)
below is a batch file of one of the method i used, can anyone take a look at it and give me some advice
Thanks
!!!!!!!!!!!!!
!DEFINE PARAMETERS FOR CYLINDER (MM)
THK=10 !THICKNESS
EXTRAD=35 !EXTERNAL RADIUS
INTRAD=35-THK !INTERNAL RADIUS
TOPZ=0 !Z COORDINATES (CYLINDER WALL)
BOTZ=80
BASTHK=2 !Z COORDINATES (FROM BASAL)
/PREP7
ET,1,SOLID186 !ELEMENT & MATERIAL PROPERTIES
MP,NUXY,1,0.499 !APPROXIMATELY INCOMPRESSIBLE
MP,EX,1,31E-3 !MODULUS 31KPA
NUMSTR,VOLU,100 !STARTING VOLUME NO.(SEPERATE ENTITY)
CYLIND,INTRAD,EXTRAD,0,80,, !CREATE HOLLOW CYLINDER
CYLIND,EXTRAD,,(BOTZ-THK),BOTZ !CREATE APICAL CAP
NUMSTR,VOLU,50 !STARTING VOLUME NO.(AFTER VOVLAP)
BOPT,NUMB,OFF
VOVLAP,100,101
BOPT,NUMB,ON
WPROTA,,90, !ROTATE WORKPLANE (THXY,THYZ,THZX)
VSBW,ALL !SPLIT VOLUME INTO 2 BY WORKPLANE
WPROTA,,,90
NUMSTR,VOLU,1 !STARTING VOLUME NO.(AFTER BOOLEAN)
VSBW,ALL
!!!!MAPPED MESHING!!!!
LSEL,S,,,1,16,1,, !SELECT CIRCUMFERENTIAL LINES
LSEL,A,,,21,24 !CREATE 9 DIVISIONS ON SELECTED LINES
LSEL,A,,,51,53,2 !36 DIVISIONS ON CIRCUMFERENCE
LSEL,A,,,42,48,6 !EACH ELEMENT SPANS 9 DEGREE
LESIZE,ALL,,,10,,
LSEL,ALL
LSEL,S,,,19,25,6 !WALL THICKNESS DEFINED BY 4 ELEMENTS
LSEL,A,,,27,28 !EACH ELEMENT WITH EQUAL THICKNESS
LSEL,A,,,54,63,3 !2.5MM EACH ACROSS WALL TRANSMURALLY
LSEL,A,,,20,26,6
LSEL,A,,,56,59,3
LESIZE,ALL,,,4,,
LSEL,ALL
LSEL,S,,,33,39,6 !SELECT VERTICAL LINES
LSEL,A,,,44,58,14 !CREATE 16 DIVISIONS EQUALLY
LSEL,A,,,34,40,6 !ACROSS HEIGHT OF HOLLOW CYLINDER
LSEL,A,,,52,55,3 !EACH ELEMENT IS 5MM IN THICKNESS
LESIZE,ALL,,,2,,
LSEL,ALL
LSEL,S,,,35,38
LSEL,A,,,61,62
LSEL,A,,,64,65
LESIZE,ALL,,,14,,
LSEL,ALL
MSHAPE,0 !HEXAHEDRA SHAPED ELEMENTS
MSHKEY,1 !MAPPED MESHING
VMESH,ALL !MESH ALL VOLUMES
/SOLU
!!!!APPLY BOUNDARY CONDITIONS!!!!
ASEL,S,LOC,Z,0 !SELECT NODES ATTACHED TO
NSLA,R,1 !BASAL SURFACE
D,ALL,ALL !FULLY CONSTRAINED AT BASAL TOP
ASEL,ALL
NSEL,ALL
!!!!APPLY APICAL ROTATION!!!!
CSYS,1 !CYLINDRICAL COORDINATE SYSTEM
*AFUN,DEG !DEGREES
DRT=5 !DRT EQUALS 5 DEGREES
VSEL,S,,,7 !WALL AT 1ST QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,DRT,90
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD-EXTRAD*COS(DRT)
D,ALL,UY,-EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,5 !WALL AT 2ND QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,90+DRT,180
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD-EXTRAD*COS(DRT)
D,ALL,UY,EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,6 !WALL AT 3RD QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,180+DRT,270
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD*COS(DRT)-EXTRAD
D,ALL,UY,EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,S,,,8 !WALL AT 4TH QUADRANT
NSLV,R,1 !SELECT ATTACHED NODES
NSEL,R,LOC,Y,270+DRT,360
NSEL,R,LOC,X,35
D,ALL,UX,EXTRAD*COS(DRT)-EXTRAD
D,ALL,UY,-EXTRAD*SIN(DRT)
NSEL,ALL
VSEL,ALL
SOLVE