! CMD Version:2
! Version 2 enables expanded acceptable characters for object names.
! If unspecified, set to 1 or set to an invalid value, Adams View assumes traditional naming requirements.
!
!-------------------------- Default Units for Model ---------------------------!
!
!
defaults units  &
   length = mm  &
   angle = deg  &
   force = newton  &
   mass = kg  &
   time = sec
!
defaults units  &
   coordinate_system_type = cartesian  &
   orientation_type = body313
!
!------------------------ Default Attributes for Model ------------------------!
!
!
defaults attributes  &
   inheritance = bottom_up  &
   icon_visibility = on  &
   grid_visibility = off  &
   size_of_icons = 50.0  &
   spacing_for_grid = 1000.0
!
!------------------------------ Adams View Model ------------------------------!
!
!
model create  &
   model_name = MODEL_1
!
view erase
!
!--------------------------------- Materials ----------------------------------!
!
!
material create  &
   material_name = .MODEL_1.steel  &
   density = 7.801E-06  &
   youngs_modulus = 2.07E+05  &
   poissons_ratio = 0.29
!
!-------------------------------- Rigid Parts ---------------------------------!
!
! Create parts and their dependent markers and graphics
!
!----------------------------------- ground -----------------------------------!
!
!
! ****** Ground Part ******
!
defaults model  &
   part_name = ground
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.ground
!
part create rigid_body mass_properties  &
   part_name = .MODEL_1.ground  &
   material_type = .MODEL_1.steel
!
part attributes  &
   part_name = .MODEL_1.ground  &
   name_visibility = off
!
!------------------------------------ P_1 -------------------------------------!
!
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.ground
!
part create rigid_body name_and_position  &
   part_name = .MODEL_1.P_1  &
   adams_id = 2  &
   location = 0.0, 0.0, 0.0  &
   orientation = 0.0d, 0.0d, 0.0d
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.P_1
!
! ****** Markers for current part ******
!
marker create  &
   marker_name = .MODEL_1.P_1.MARKER_1  &
   adams_id = 1  &
   location = 0.0, 0.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
marker create  &
   marker_name = .MODEL_1.P_1.cm  &
   location = 1.2557732755E-10, 147.4445861904, 1.3363381523E-10  &
   orientation = 0.0d, 90.0d, 0.0d
!
marker create  &
   marker_name = .MODEL_1.P_1.E_1  &
   location = 0.0, 350.0, 0.0  &
   orientation = 0.0d, 0.0d, 0.0d
!
part create rigid_body mass_properties  &
   part_name = .MODEL_1.P_1  &
   material_type = .MODEL_1.steel
!
! ****** Graphics for current part ******
!
geometry create shape cylinder  &
   cylinder_name = .MODEL_1.P_1.CYLINDER_1  &
   adams_id = 1  &
   center_marker = .MODEL_1.P_1.MARKER_1  &
   angle_extent = 360.0  &
   length = 350.0  &
   radius = 43.75  &
   side_count_for_body = 20  &
   segment_count_for_ends = 20
!
geometry create feature hole  &
   hole_name = .MODEL_1.P_1.CYLINDER_1.HOLE_1  &
   center = -3.416988914E-10, 350.0, -3.6372294066E-10  &
   radius = 30.0  &
   depth = 200.0  &
   countersink = no
!
part attributes  &
   part_name = .MODEL_1.P_1  &
   color = RED  &
   name_visibility = off
!
!------------------------------------ P_2 -------------------------------------!
!
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.ground
!
part create rigid_body name_and_position  &
   part_name = .MODEL_1.P_2  &
   adams_id = 4  &
   location = 350.0, 300.0, 0.0  &
   orientation = 0.0d, 0.0d, 0.0d
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.P_2
!
! ****** Markers for current part ******
!
marker create  &
   marker_name = .MODEL_1.P_2.E_2  &
   location = 0.0, 350.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
marker create  &
   marker_name = .MODEL_1.P_2.MARKER_1  &
   adams_id = 4  &
   location = 0.0, 0.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
marker create  &
   marker_name = .MODEL_1.P_2.cm  &
   adams_id = 5  &
   location = 1.2557732755E-10, 147.4445861904, 1.3363381523E-10  &
   orientation = 0.0d, 90.0d, 0.0d
!
part create rigid_body mass_properties  &
   part_name = .MODEL_1.P_2  &
   material_type = .MODEL_1.steel
!
! ****** Graphics for current part ******
!
geometry create shape cylinder  &
   cylinder_name = .MODEL_1.P_2.CYLINDER_1  &
   adams_id = 3  &
   center_marker = .MODEL_1.P_2.MARKER_1  &
   angle_extent = 360.0  &
   length = 350.0  &
   radius = 43.75  &
   side_count_for_body = 20  &
   segment_count_for_ends = 20
!
geometry create feature hole  &
   hole_name = .MODEL_1.P_2.CYLINDER_1.HOLE_1  &
   center = 349.9999999997, 650.0, -3.6372294066E-10  &
   radius = 30.0  &
   depth = 200.0  &
   countersink = no
!
part attributes  &
   part_name = .MODEL_1.P_2  &
   color = RED  &
   name_visibility = off
!
!------------------------------------ P_3 -------------------------------------!
!
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.ground
!
part create rigid_body name_and_position  &
   part_name = .MODEL_1.P_3  &
   adams_id = 5  &
   location = 550.0, 0.0, 0.0  &
   orientation = 0.0d, 0.0d, 0.0d
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.P_3
!
! ****** Markers for current part ******
!
marker create  &
   marker_name = .MODEL_1.P_3.MARKER_1  &
   adams_id = 6  &
   location = 0.0, 0.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
marker create  &
   marker_name = .MODEL_1.P_3.cm  &
   adams_id = 7  &
   location = 1.2557732755E-10, 147.4445861904, 1.3363381523E-10  &
   orientation = 0.0d, 90.0d, 0.0d
!
marker create  &
   marker_name = .MODEL_1.P_3.E_3  &
   location = 0.0, 350.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
part create rigid_body mass_properties  &
   part_name = .MODEL_1.P_3  &
   material_type = .MODEL_1.steel
!
! ****** Graphics for current part ******
!
geometry create shape cylinder  &
   cylinder_name = .MODEL_1.P_3.CYLINDER_1  &
   adams_id = 4  &
   center_marker = .MODEL_1.P_3.MARKER_1  &
   angle_extent = 360.0  &
   length = 350.0  &
   radius = 43.75  &
   side_count_for_body = 20  &
   segment_count_for_ends = 20
!
geometry create feature hole  &
   hole_name = .MODEL_1.P_3.CYLINDER_1.HOLE_1  &
   center = 549.9999999997, 350.0, -3.6372294066E-10  &
   radius = 30.0  &
   depth = 200.0  &
   countersink = no
!
part attributes  &
   part_name = .MODEL_1.P_3  &
   color = RED  &
   name_visibility = off
!
!------------------------------------ P_4 -------------------------------------!
!
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.ground
!
part create rigid_body name_and_position  &
   part_name = .MODEL_1.P_4  &
   adams_id = 6  &
   location = -200.0, 0.0, 0.0  &
   orientation = 0.0d, 0.0d, 0.0d
!
defaults coordinate_system  &
   default_coordinate_system = .MODEL_1.P_4
!
! ****** Markers for current part ******
!
marker create  &
   marker_name = .MODEL_1.P_4.MARKER_1  &
   adams_id = 8  &
   location = 0.0, 0.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
marker create  &
   marker_name = .MODEL_1.P_4.cm  &
   adams_id = 9  &
   location = 1.2557732755E-10, 147.4445861904, 1.3363381523E-10  &
   orientation = 0.0d, 90.0d, 0.0d
!
marker create  &
   marker_name = .MODEL_1.P_4.E_4  &
   location = 0.0, 350.0, 0.0  &
   orientation = 180.0d, 90.0d, 180.0d
!
part create rigid_body mass_properties  &
   part_name = .MODEL_1.P_4  &
   material_type = .MODEL_1.steel
!
! ****** Graphics for current part ******
!
geometry create shape cylinder  &
   cylinder_name = .MODEL_1.P_4.CYLINDER_1  &
   adams_id = 5  &
   center_marker = .MODEL_1.P_4.MARKER_1  &
   angle_extent = 360.0  &
   length = 350.0  &
   radius = 43.75  &
   side_count_for_body = 20  &
   segment_count_for_ends = 20
!
geometry create feature hole  &
   hole_name = .MODEL_1.P_4.CYLINDER_1.HOLE_1  &
   center = -200.0000000003, 350.0, -3.6372294066E-10  &
   radius = 30.0  &
   depth = 200.0  &
   countersink = no
!
part attributes  &
   part_name = .MODEL_1.P_4  &
   color = RED  &
   name_visibility = off
!
!----------------------------------- Forces -----------------------------------!
!
!
!---------------------------------- Accgrav -----------------------------------!
!
!
force create body gravitational  &
   gravity_field_name = gravity  &
   x_component_gravity = 0.0  &
   y_component_gravity = -9806.65  &
   z_component_gravity = 0.0
!
!----------------------------- Analysis settings ------------------------------!
!
!
!---------------------------- Adams View Variables ----------------------------!
!
!
variable create  &
   variable_name = .MODEL_1.myMod  &
   object_value = (NONE)
!
variable create  &
   variable_name = .MODEL_1.Npiston  &
   integer_value = 4
!
!---------------------- Set Adams View Object Variables -----------------------!
!
!
variable modify  &
   variable_name = .MODEL_1.myMod  &
   object_value = .MODEL_1
!
!--------------------------- Expression definitions ---------------------------!
!
!
defaults coordinate_system  &
   default_coordinate_system = ground
!
geometry modify shape cylinder  &
   cylinder_name = .MODEL_1.P_1.CYLINDER_1  &
   length = (350.0mm)  &
   radius = (43.75mm)
!
geometry modify feature hole  &
   hole_name = .MODEL_1.P_1.CYLINDER_1.HOLE_1  &
   radius = (3.0cm)
!
material modify  &
   material_name = .MODEL_1.steel  &
   density = (7801.0(kg/meter**3))  &
   youngs_modulus = (2.07E+11(Newton/meter**2))
!
geometry modify shape cylinder  &
   cylinder_name = .MODEL_1.P_2.CYLINDER_1  &
   length = (350.0mm)  &
   radius = (43.75mm)
!
geometry modify feature hole  &
   hole_name = .MODEL_1.P_2.CYLINDER_1.HOLE_1  &
   radius = (3.0cm)
!
geometry modify shape cylinder  &
   cylinder_name = .MODEL_1.P_3.CYLINDER_1  &
   length = (350.0mm)  &
   radius = (43.75mm)
!
geometry modify feature hole  &
   hole_name = .MODEL_1.P_3.CYLINDER_1.HOLE_1  &
   radius = (3.0cm)
!
geometry modify shape cylinder  &
   cylinder_name = .MODEL_1.P_4.CYLINDER_1  &
   length = (350.0mm)  &
   radius = (43.75mm)
!
geometry modify feature hole  &
   hole_name = .MODEL_1.P_4.CYLINDER_1.HOLE_1  &
   radius = (3.0cm)
!
model display  &
   model_name = MODEL_1
