@classmethod
def export_to_hdf5(cls, h5_file, model, eids):
    """exports the elements in a vectorized way"""
    pids = []
    nodes = []
    mcids = []
    thetas = []
    zoffsets = []
    for eid in eids:
        element = model.elements[eid]
        pids.append(element.pid)
        nodes.append(element.nodes)
        if isinstance(element.theta_mcid, int):
            mcid = element.theta_mcid
            theta = 0.0
        else:
            assert isinstance(element.theta_mcid, float), type(element.
                theta_mcid)
            mcid = -1
            theta = element.theta_mcid
        mcids.append(mcid)
        thetas.append(theta)
        zoffsets.append(element.zoffset)
    h5_file.create_dataset('eid', data=eids)
    h5_file.create_dataset('pid', data=pids)
    h5_file.create_dataset('nodes', data=nodes)
    h5_file.create_dataset('mcid', data=mcids)
    h5_file.create_dataset('theta', data=thetas)
    h5_file.create_dataset('zoffset', data=zoffsets)
