!   TITLE:  ball_screw-gear.mac (COMMON_MISSILE)
!
!-----------------------------------------------------------------------
!   Rev -   04/29/2003      J. Rinaldi
!-----------------------------------------------------------------------
!
!   This macro creates the common missile ball screw/gear assembly concept.
!
!   CSbs0:      Cartesian Ball Screw Coordinate System
!   CSbs1:      Cylindrical Ball Screw Coordinate System
!   CSbs2:      Spherical Ball Screw Coordinate System
!
!
!************************** TABLE OF CONTENTS **************************
!
!       Model Assembly Preparation
!
!   1.  Parameter List
!   2.  Model Coordinate System
!   3.  Solid Model
!
!********************* Model Assembly Preparation **********************
!
mod_assemb_prep,arg1,arg2,arg3
!
!<<<<<<<<<<<<<<<<<<<<<<<< 1.  Parameter List >>>>>>>>>>>>>>>>>>>>>>>>>>
!
ball_screw-gear.parm
!
!<<<<<<<<<<<<<<<<<<<< 2.  Model Coordinate System >>>>>>>>>>>>>>>>>>>>>
!
mod_coord_system,acs,xc,yc,zc,rotxyc,rotyzc,rotzxc
!
!<<<<<<<<<<<<<<<<<<<<<<<<<<< 3.  Solid Model >>>>>>>>>>>>>>>>>>>>>>>>>>
!
!
!----------------------- 3.1  Stator Cross-Section --------------------
!
csys,CSbs0
!
k,,0,0,0
k,,0,R01,0
k,,0,R01,Dz01
k,,0,R02,Dz01
k,,0,R02,Dz01+Dz02
!
k,,0,R01,Dz01+Dz02
k,,0,R01,2*Dz01+Dz02
k,,0,R03,2*Dz01+Dz02
k,,0,R03,2*Dz01+Dz02+Dz03
k,,0,0,2*Dz01+Dz02+Dz03
!
create_lines
!
ksel,s,kp,,km-7,km-4,7-4
ln_fillet,,R04
!
chamfer_area,1,lm-11,lm-10,Dc01
chamfer_area,1,lm-11,lm-10,Dc01
!
create_area-lines
!
lplot
!
!----------------------- 3.2  Revolve Cross-Section -------------------
!
csys,CSbs0
!
revolve_aset,CSbs0,360,4
!
vadd,all
init_entity_num
!
lplot
!
finalize_model