def get_sfd(input_values, x):
    """ Take input and position on the bar and gets the resulting sfd.

        :param input_values: Dict containing all the values given at input.

        :param x: position along the length of the bar.

    """
    sfd = 0
    udls = input_values.get('UDLs')
    for i in range(len(udls)):
        udl = udls[i]
        if float(udl[1]) <= x and min(x, float(udl[2])) <= x:
            sfd += float(udl[0]) * (min(x, float(udl[2])) - float(udl[1]))
    point_loads = input_values.get('point_loads')
    for i in range(len(point_loads)):
        point_load = point_loads[i]
        if float(point_load[1]) <= float(x):
            sfd += float(point_load[0])
    return sfd
