@classmethod
def export_to_hdf5(cls, h5_file, model, eids, encoding='ascii'):
    """exports the elements in a vectorized way"""
    pids = []
    nodes = []
    cid = []
    plane = []
    sptid = []
    for eid in eids:
        element = model.elements[eid]
        pids.append(element.pid)
        nodes.append(element.nodes)
        cid.append(element.cid)
        plane.append(element.plane.encode(encoding))
        sptidi = 0 if element.sptid is None else element.sptid
        sptid.append(sptidi)
    h5_file.create_dataset('eid', data=eids)
    h5_file.create_dataset('nodes', data=nodes)
    h5_file.create_dataset('pid', data=pids)
    h5_file.create_dataset('cid', data=cid)
    h5_file.create_dataset('plane', data=plane)
    h5_file.create_dataset('sptid', data=sptid)
