! !-------------------------- 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 = roue_vis ! view erase ! !--------------------------------- Materials ----------------------------------! ! ! material create & material_name = .roue_vis.steel & adams_id = 1 & youngs_modulus = 2.07E+005 & poissons_ratio = 0.29 & density = 7.801E-006 ! !-------------------------------- Rigid Parts ---------------------------------! ! ! Create parts and their dependent markers and graphics ! !----------------------------------- ground -----------------------------------! ! ! ! ****** Ground Part ****** ! defaults model & part_name = ground ! defaults coordinate_system & default_coordinate_system = .roue_vis.ground ! ! ****** Markers for current part ****** ! marker create & marker_name = .roue_vis.ground.MARKER_4 & adams_id = 4 & location = 0.0, 0.0, 0.0 & orientation = 180.0d, 90.0d, 180.0d ! marker create & marker_name = .roue_vis.ground.MARKER_6 & adams_id = 6 & location = 250.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.ground.CVM & adams_id = 7 & location = 50.0, 0.0, 0.0 & orientation = 0.0d, 70.0d, 0.0d ! part create rigid_body mass_properties & part_name = .roue_vis.ground & material_type = .roue_vis.steel ! part attributes & part_name = .roue_vis.ground & name_visibility = off ! !------------------------------------ Vis -------------------------------------! ! ! defaults coordinate_system & default_coordinate_system = .roue_vis.ground ! part create rigid_body name_and_position & part_name = .roue_vis.Vis & adams_id = 2 & location = 0.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! defaults coordinate_system & default_coordinate_system = .roue_vis.Vis ! ! ****** Markers for current part ****** ! marker create & marker_name = .roue_vis.Vis.MARKER_1 & adams_id = 1 & location = 0.0, 200.0, 0.0 & orientation = 0.0d, 90.0d, 0.0d ! marker create & marker_name = .roue_vis.Vis.cm & adams_id = 12 & location = 8.5578444782E-002, 0.3423137791, 0.0 & orientation = 359.9232116273d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Vis.MARKER_3 & adams_id = 3 & location = 0.0, 0.0, 0.0 & orientation = 180.0d, 90.0d, 180.0d ! marker create & marker_name = .roue_vis.Vis.MARKER_8 & adams_id = 8 & location = 0.0, 200.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Vis.MARKER_9 & adams_id = 9 & location = 100.0, 200.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! part create rigid_body mass_properties & part_name = .roue_vis.Vis & material_type = .roue_vis.steel ! ! ****** Graphics for current part ****** ! geometry create shape cylinder & cylinder_name = .roue_vis.Vis.CYLINDER_1 & adams_id = 1 & center_marker = .roue_vis.Vis.MARKER_1 & angle_extent = 360.0 & length = 400.0 & radius = 50.0 & side_count_for_body = 20 & segment_count_for_ends = 20 ! geometry create shape link & link_name = .roue_vis.Vis.LINK_3 & i_marker = .roue_vis.Vis.MARKER_8 & j_marker = .roue_vis.Vis.MARKER_9 & width = 10.0 & depth = 5.0 ! part attributes & part_name = .roue_vis.Vis & color = GREEN & name_visibility = off ! !------------------------------------ Roue ------------------------------------! ! ! defaults coordinate_system & default_coordinate_system = .roue_vis.ground ! part create rigid_body name_and_position & part_name = .roue_vis.Roue & adams_id = 3 & location = 0.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! defaults coordinate_system & default_coordinate_system = .roue_vis.Roue ! ! ****** Markers for current part ****** ! marker create & marker_name = .roue_vis.Roue.MARKER_2 & adams_id = 2 & location = 250.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Roue.cm & adams_id = 13 & location = 250.1540424982, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Roue.MARKER_5 & adams_id = 5 & location = 250.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Roue.MARKER_10 & adams_id = 10 & location = 250.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! marker create & marker_name = .roue_vis.Roue.MARKER_11 & adams_id = 11 & location = 400.0, 0.0, 0.0 & orientation = 0.0d, 0.0d, 0.0d ! part create rigid_body mass_properties & part_name = .roue_vis.Roue & material_type = .roue_vis.steel ! ! ****** Graphics for current part ****** ! geometry create shape torus & torus_name = .roue_vis.Roue.TORUS_2 & center_marker = .roue_vis.Roue.MARKER_2 & angle_extent = 360.0 & major_radius = 159.099025767 & minor_radius = 53.033008589 & side_count_for_perimeter = 20 & segment_count = 20 ! geometry create shape link & link_name = .roue_vis.Roue.LINK_4 & i_marker = .roue_vis.Roue.MARKER_10 & j_marker = .roue_vis.Roue.MARKER_11 & width = 15.0 & depth = 7.5 ! part attributes & part_name = .roue_vis.Roue & color = MAGENTA & name_visibility = off ! !----------------------------------- Joints -----------------------------------! ! ! constraint create joint revolute & joint_name = .roue_vis.JOINT_1 & adams_id = 1 & i_marker_name = .roue_vis.Vis.MARKER_3 & j_marker_name = .roue_vis.ground.MARKER_4 ! constraint attributes & constraint_name = .roue_vis.JOINT_1 & name_visibility = off ! constraint create joint revolute & joint_name = .roue_vis.JOINT_2 & adams_id = 2 & i_marker_name = .roue_vis.Roue.MARKER_5 & j_marker_name = .roue_vis.ground.MARKER_6 ! constraint attributes & constraint_name = .roue_vis.JOINT_2 & color = CYAN & name_visibility = off ! !----------------------------------- Forces -----------------------------------! ! ! !----------------------------------- Gears ------------------------------------! ! ! constraint create complex_joint gear & gear_name = .roue_vis.GEAR_1 & adams_id = 1 & comments = "Engrenage_Roue_Vis" & joint_name = & .roue_vis.JOINT_1, & .roue_vis.JOINT_2 & common_velocity_marker = .roue_vis.ground.CVM ! !-------------------------- Adams/View UDE Instances --------------------------! ! ! defaults coordinate_system & default_coordinate_system = .roue_vis.ground ! undo begin_block suppress = yes ! ude create instance & instance_name = .roue_vis.general_motion_1 & definition_name = .MDI.Constraints.general_motion & location = 0.0, 0.0, 0.0 & orientation = 0.0, 0.0, 0.0 ! !-------------------------- Adams/View UDE Instance ---------------------------! ! ! variable modify & variable_name = .roue_vis.general_motion_1.i_marker & object_value = (.roue_vis.Vis.MARKER_3) ! variable modify & variable_name = .roue_vis.general_motion_1.j_marker & object_value = (.roue_vis.ground.MARKER_4) ! variable modify & variable_name = .roue_vis.general_motion_1.constraint & object_value = (.roue_vis.JOINT_1) ! variable modify & variable_name = .roue_vis.general_motion_1.t1_type & integer_value = 0 ! variable modify & variable_name = .roue_vis.general_motion_1.t2_type & integer_value = 0 ! variable modify & variable_name = .roue_vis.general_motion_1.t3_type & integer_value = 0 ! variable modify & variable_name = .roue_vis.general_motion_1.r1_type & integer_value = 0 ! variable modify & variable_name = .roue_vis.general_motion_1.r2_type & integer_value = 0 ! variable modify & variable_name = .roue_vis.general_motion_1.r3_type & integer_value = 1 ! variable modify & variable_name = .roue_vis.general_motion_1.t1_func & string_value = "0 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.t2_func & string_value = "0 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.t3_func & string_value = "0 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.r1_func & string_value = "0 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.r2_func & string_value = "0 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.r3_func & string_value = "6.28/5 * time" ! variable modify & variable_name = .roue_vis.general_motion_1.t1_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.t2_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.t3_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r1_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r2_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r3_ic_disp & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.t1_ic_velo & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.t2_ic_velo & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.t3_ic_velo & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r1_ic_velo & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r2_ic_velo & real_value = 0.0 ! variable modify & variable_name = .roue_vis.general_motion_1.r3_ic_velo & real_value = 0.0 ! ude modify instance & instance_name = .roue_vis.general_motion_1 ! undo end_block ! !---------------------------------- 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 ------------------------------! ! ! !---------------------------------- Measures ----------------------------------! ! ! measure create object & measure_name = .roue_vis.JOINT_1_MEA_1 & from_first = no & object = .roue_vis.JOINT_1 & characteristic = ax_ay_az_projection_angles & component = z_component ! data_element attributes & data_element_name = .roue_vis.JOINT_1_MEA_1 & color = WHITE ! measure create object & measure_name = .roue_vis.JOINT_2_MEA_1 & from_first = no & object = .roue_vis.JOINT_2 & characteristic = ax_ay_az_projection_angles & component = z_component ! data_element attributes & data_element_name = .roue_vis.JOINT_2_MEA_1 & color = WHITE ! !----------------------------- Simulation Scripts -----------------------------! ! ! simulation script create & sim_script_name = .roue_vis.Last_Sim & commands = & "simulation single_run transient type=auto_select end_time=5.0 number_of_steps=50 model_name=.roue_vis initial_static=no" ! !---------------------------- Function definitions ----------------------------! ! ! !-------------------------- Adams/View UDE Instance ---------------------------! ! ! ude modify instance & instance_name = .roue_vis.general_motion_1 ! !--------------------------- Expression definitions ---------------------------! ! ! defaults coordinate_system & default_coordinate_system = ground ! geometry modify shape cylinder & cylinder_name = .roue_vis.Vis.CYLINDER_1 & length = (400.0mm) & radius = (50.0mm) ! geometry modify shape link & link_name = .roue_vis.Vis.LINK_3 & width = (10.0mm) & depth = (5.0mm) ! geometry modify shape torus & torus_name = .roue_vis.Roue.TORUS_2 & major_radius = (159.099025767mm) & minor_radius = (53.033008589mm) ! geometry modify shape link & link_name = .roue_vis.Roue.LINK_4 & width = (15.0mm) & depth = (7.5mm) ! material modify & material_name = .roue_vis.steel & youngs_modulus = (2.07E+011(Newton/meter**2)) & density = (7801.0(kg/meter**3)) ! model display & model_name = roue_vis