@classmethod
def export_to_hdf5(cls, h5_file, model, mids):
    """exports the materials in a vectorized way"""
    comments = []
    e11 = []
    e22 = []
    nu12 = []
    g12 = []
    g1z = []
    g2z = []
    rho = []
    a1 = []
    a2 = []
    tref = []
    Xt = []
    Xc = []
    Yt = []
    Yc = []
    S = []
    ge = []
    F12 = []
    strn = []
    for mid in mids:
        material = model.materials[mid]
        e11.append(material.e11)
        e22.append(material.e22)
        nu12.append(material.nu12)
        g12.append(material.g12)
        g1z.append(material.g1z)
        g2z.append(material.g2z)
        rho.append(material.rho)
        a1.append(material.a1)
        a2.append(material.a2)
        tref.append(material.tref)
        ge.append(material.ge)
        Xt.append(material.Xt)
        Xc.append(material.Xc)
        Yt.append(material.Yt)
        Yc.append(material.Yc)
        S.append(material.S)
        F12.append(material.F12)
        strn.append(material.strn)
    h5_file.create_dataset('mid', data=mids)
    h5_file.create_dataset('E11', data=e11)
    h5_file.create_dataset('E22', data=e22)
    h5_file.create_dataset('Nu12', data=nu12)
    h5_file.create_dataset('G12', data=g12)
    h5_file.create_dataset('G1z', data=g1z)
    h5_file.create_dataset('G2z', data=g2z)
    h5_file.create_dataset('A1', data=a1)
    h5_file.create_dataset('A2', data=a2)
    h5_file.create_dataset('rho', data=rho)
    h5_file.create_dataset('tref', data=tref)
    h5_file.create_dataset('ge', data=ge)
    h5_file.create_dataset('Xt', data=Xt)
    h5_file.create_dataset('Xc', data=Xc)
    h5_file.create_dataset('Yt', data=Yt)
    h5_file.create_dataset('Yc', data=Yc)
    h5_file.create_dataset('S', data=S)
    h5_file.create_dataset('F12', data=F12)
    h5_file.create_dataset('strn', data=strn)
