Beispiel #1
0
def get_tetrahedra_relative_grid_address(microzone_lattice):
    """
    reciprocal_lattice:
      column vectors of parallel piped microzone lattice
      which can be obtained by:
      microzone_lattice = np.linalg.inv(bulk.get_cell()) / mesh
    """

    relative_grid_address = np.zeros((24, 4, 3), dtype='intc')
    phonoc.tetrahedra_relative_grid_address(
        relative_grid_address,
        np.array(microzone_lattice, dtype='double', order='C'))

    return relative_grid_address
Beispiel #2
0
def get_tetrahedra_relative_grid_address(microzone_lattice):
    """
    reciprocal_lattice:
      column vectors of parallel piped microzone lattice
      which can be obtained by:
      microzone_lattice = np.linalg.inv(bulk.get_cell()) / mesh
    """
    
    relative_grid_address = np.zeros((24, 4, 3), dtype='intc')
    phonoc.tetrahedra_relative_grid_address(
        relative_grid_address,
        np.array(microzone_lattice, dtype='double', order='C'))
    
    return relative_grid_address
Beispiel #3
0
def get_tetrahedra_relative_grid_address(microzone_lattice):
    """Return relative (differences of) grid addresses from the central.

    Parameter
    ---------
    microzone_lattice : ndarray or list of list
        column vectors of parallel piped microzone lattice, i.e.,
        microzone_lattice = np.linalg.inv(cell.get_cell()) / mesh

    """
    relative_grid_address = np.zeros((24, 4, 3), dtype="int_", order="C")
    phonoc.tetrahedra_relative_grid_address(
        relative_grid_address,
        np.array(microzone_lattice, dtype="double", order="C"))

    return relative_grid_address
Beispiel #4
0
def get_tetrahedra_relative_grid_address(microzone_lattice):
    """Returns relative (differences of) grid addresses from the central

    Parameter
    ---------
    microzone_lattice : ndarray or list of list
        column vectors of parallel piped microzone lattice, i.e.,
        microzone_lattice = np.linalg.inv(cell.get_cell()) / mesh

    """

    relative_grid_address = np.zeros((24, 4, 3), dtype='intc')
    phonoc.tetrahedra_relative_grid_address(
        relative_grid_address,
        np.array(microzone_lattice, dtype='double', order='C'))

    return relative_grid_address