def dsquared(v):
    """
    Returns the squared length of a 3-vector. Does not consider PBC.

    Args:
        v: a 3-vector
    
    Returns:
        the squared length of the vector
    """
    return v[0] ** 2 + v[1] ** 2 + v[2] ** 2
