!   TITLE:  elev_torq_brng.mac (AAAV)
!
!---------------------------------------------------------------------------
!       Rev -   06/13/2000      J. Rinaldi
!       Rev A   06/05/2002      D. Edwards
!               Added weight, volume and density calculation
!---------------------------------------------------------------------------
!
!   This macro creates the elevation torquer bearings:
!
!               P/N A490A045-106
!
!   This is used in the AAAV assembly, end unit CU01715076.
!
!   CSetb0:     Cartesian Elevation Torquer Bearing Coordinate System
!   CSetb1:     Cylindrical Elevation Torquer Bearing Coordinate System
!   CSetb2:     Spherical Elevation Torquer Bearing 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       ! prepare database for assembly
!
!<<<<<<<<<<<<<<<<<<<<<<<< 1.  Parameter List >>>>>>>>>>>>>>>>>>>>>>>>>>
!
elev_torq_brng.parm             ! name of parameter file
!
!<<<<<<<<<<<<<<<<<<<< 2.  Model Coordinate System >>>>>>>>>>>>>>>>>>>>>
!
mod_coord_system,acs,xc,yc,zc,rotxyc,rotyzc,rotzxc
!
!<<<<<<<<<<<<<<<<<<<<<<<<<<< 3.  Solid Model >>>>>>>>>>>>>>>>>>>>>>>>>>
!
csys,CSetb0
!
k,,0,r1,l1
k,,0,r1,0
k,,0,r2,0
k,,0,r2,l1
!
create_area
!
lplot
!
!------------------------- 4 Material Properties ---------------------------
!
csys,CSetb0
!
!vol_revolved_area,'V','y'
V=0.69351
!
create_mat_prop,'mp_etb','ex',E,'nuxy',nu,'dens',(W/V)/g_bin
!
!-------------- Create Volume from Revolved Cross Section ------------------
!
*if,subassm_,ne,1,then
    csys,CSetb0

    k
    k,,0,0,1

    init_entity_num

    /psymb,cs,1
    revolve_aset,km-1,km,360,4
*endif
!
!
finalize_model