@classmethod
def export_to_hdf5(cls, h5_file, model, pids):
    """exports the properties in a vectorized way"""
    mids = []
    A = []
    J = []
    c = []
    nsm = []
    for pid in pids:
        prop = model.properties[pid]
        mids.append(prop.mid)
        A.append(prop.A)
        J.append(prop.j)
        c.append(prop.c)
        nsm.append(prop.nsm)
    h5_file.create_dataset('pid', data=pids)
    h5_file.create_dataset('mid', data=mids)
    h5_file.create_dataset('A', data=A)
    h5_file.create_dataset('J', data=J)
    h5_file.create_dataset('c', data=c)
    h5_file.create_dataset('nsm', data=nsm)
