def get_const_force_func(force_val):
    """
    Returns a constant force function with constant value force_val.
    """
    def const_force_func(v,t):
        return force_val
    return const_force_func