def annulus_gearring_constraint(c):
    """ convert the epicyclic_gearing constraint into gearring constraint
  """
    gr_c = {}
    gr_c['gear_tooth_nb'] = c['annulus_gear_tooth_nb']
    gr_c['second_gear_tooth_nb'] = c['planet_gear_tooth_nb']
    gr_c['gear_base_diameter'] = float((c['smallest_gear_tooth_nb'] - 2) *
        c['gear_module'] * c['annulus_gear_tooth_nb']) / c[
        'smallest_gear_tooth_nb']
    gr_c['gear_module'] = c['gear_module']
    gr_c['gear_addendum_height_pourcentage'] = c[
        'gear_addendum_height_pourcentage']
    gr_c['gear_dedendum_height_pourcentage'] = 100.0 - c[
        'gearring_dedendum_to_hollow_pourcentage']
    gr_c['gear_hollow_height_pourcentage'] = 25.0 + c[
        'gearring_dedendum_to_hollow_pourcentage']
    gr_c['gear_router_bit_radius'] = c['gear_router_bit_radius']
    gr_c['gear_tooth_resolution'] = c['gear_tooth_resolution']
    gr_c['gear_skin_thickness'] = c['gear_skin_thickness']
    gr_c['gear_addendum_dedendum_parity'] = c['addendum_dedendum_parity']
    gr_c['second_gear_addendum_dedendum_parity'] = c['addendum_dedendum_parity'
        ]
    gr_c['holder_diameter'] = c['holder_diameter']
    gr_c['holder_crenel_number'] = c['holder_crenel_number']
    gr_c['holder_position_angle'] = c['holder_position_angle']
    gr_c['holder_hole_position_radius'] = c['holder_hole_position_radius']
    gr_c['holder_hole_diameter'] = c['holder_hole_diameter']
    gr_c['holder_hole_mark_nb'] = c['holder_hole_mark_nb']
    gr_c['holder_double_hole_diameter'] = c['holder_double_hole_diameter']
    gr_c['holder_double_hole_length'] = c['holder_double_hole_length']
    gr_c['holder_double_hole_position'] = c['holder_double_hole_position']
    gr_c['holder_double_hole_mark_nb'] = c['holder_double_hole_mark_nb']
    gr_c['holder_crenel_position'] = c['holder_crenel_position']
    gr_c['holder_crenel_height'] = c['holder_crenel_height']
    gr_c['holder_crenel_width'] = c['holder_crenel_width']
    gr_c['holder_crenel_skin_width'] = c['holder_crenel_skin_width']
    gr_c['holder_hole_B_diameter'] = c['holder_hole_B_diameter']
    gr_c['holder_crenel_B_position'] = c['holder_crenel_B_position']
    gr_c['holder_hole_B_crenel_list'] = c['holder_hole_B_crenel_list']
    gr_c['holder_crenel_router_bit_radius'] = c[
        'holder_crenel_router_bit_radius']
    gr_c['holder_smoothing_radius'] = c['holder_smoothing_radius']
    gr_c['cnc_router_bit_radius'] = c['cnc_router_bit_radius']
    gr_c['gear_profile_height'] = c['gear_profile_height']
    gr_c['center_position_x'] = 0.0
    gr_c['center_position_y'] = 0.0
    gr_c['gear_initial_angle'] = 0.0
    gr_c['second_gear_position_angle'] = 0.0
    gr_c['second_gear_additional_axis_length'] = 0.0
    return gr_c
