code: def ID_exit_man(Q_plant, temp, sed_inputs=sed_dict):
      
      #Inputs do not need to be checked here because they are checked by
      #functions this function calls.
      nu = pc.viscosity_dynamic(temp)
      hl = sed_input['manifold']['exit_man']['hl_orifice'].to(u.m)
      L = sed_ipnut['manifold']['tank']['L']
      N_orifices = sed_inputs['manifold']['exit_man']['N_orifices']
      K_minor = con.K_MINOR_PIPE_EXIT
      pipe_rough = mat.PIPE_ROUGH_PVC.to(u.m)
  
      D = max(diam_pipemajor(Q_plant, hl, L, nu, pipe_rough).magnitude,
                     diam_pipeminor(Q_plant, hl, K_minor).magnitude)
      err = 1.00
      while err > 0.01:
              D_prev = D
              f = pc.fric(Q_plant, D_prev, nu, pipe_rough)
              D = ((8*Q_plant**2 / pc.GRAVITY.magnitude * np.pi**2 * hl) *
                      (((f*L/D_prev + K_minor) * (1/3 * 1/) *
                      (1/3 + 1/(2 * N_orifices) + 1/(6 * N_orifices**2)))
                      / (1 - sed_inputs['manifold']['ratio_Q_orifice']**2)))**0.25
              err = abs(D_prev - D) / ((D + D_prev) / 2)
      return D
docs: Return the inner diameter of the exit manifold by guessing an initial
      diameter then iterating through pipe flow calculations until the answer
      converges within 1%% error
      Parameters
      ----------
      Q_plant : float
          Total plant flow rate
      temp : float
          Design temperature
      sed_inputs : dict
          A dictionary of all of the constant inputs needed for sedimentation tank
          calculations can be found in sed.yaml
      Returns
      -------
      float
          Inner diameter of the exit manifold
      Examples
      --------
      >>> from aide_design.play import*
      >>>