def get_grid(self,name):
    """Returns the grid with the given name.

    This mehtod extends the powerfactor.Application class. It returns the grid
    with the given name.

    Args:
        name: The name of the grid

    Returns:
        A powerfactory.DataObject of the grid with the given name

    """
    grids = self.elements_of_model("ElmNet",name)
    if not grids:
        raise Exception("No grid with name: %s" % name)
    if len(grids) > 1:
        raise Exception("Found more of one gird with name: %s" % name)
    return grids[0]