def elements_of_model(self, model, name="*"):
    """Returns all elements of the model class

    This mehtod extends the powerfactor.Application class. And returns all
    calculation relevant elements of the given class in the active project.

    Args:
        model: The name of the element class e.g. ElmLod
        name: Optional parameter, to filter the names of the elements. It may
            contain "*"

    Returns:
        A list of powerfactory.DataObject matching the input parameter

    """
    if self.GetActiveProject() is None:
        raise Exception("You have first to activate a project")
    return self.GetCalcRelevantObjects('%s.%s' % (name, model),1,1)