Introduce vertical bar symbol for fc-calculator str

This commit is contained in:
Atsushi Togo 2022-10-16 20:17:03 +09:00
parent f4c26db474
commit 0ba6cbfef9
6 changed files with 967 additions and 17 deletions

View File

@ -50,6 +50,8 @@ from phonopy.harmonic.force_constants import (
from phonopy.interface.fc_calculator import get_fc2
from phonopy.structure.atoms import PhonopyAtoms
from phonopy.structure.cells import (
Primitive,
Supercell,
get_primitive,
get_primitive_matrix,
get_supercell,
@ -567,7 +569,7 @@ class Phono3py:
return self._interaction.dynamical_matrix
@property
def primitive(self):
def primitive(self) -> Primitive:
"""Return primitive cell.
Primitive
@ -586,7 +588,7 @@ class Phono3py:
return self.primitive
@property
def unitcell(self):
def unitcell(self) -> PhonopyAtoms:
"""Return Unit cell.
PhonopyAtoms
@ -605,7 +607,7 @@ class Phono3py:
return self.unitcell
@property
def supercell(self):
def supercell(self) -> Supercell:
"""Return supercell.
Supercell
@ -624,7 +626,7 @@ class Phono3py:
return self.supercell
@property
def phonon_supercell(self):
def phonon_supercell(self) -> Supercell:
"""Return supercell for fc2.
Supercell
@ -643,7 +645,7 @@ class Phono3py:
return self.phonon_supercell
@property
def phonon_primitive(self):
def phonon_primitive(self) -> Primitive:
"""Return primitive cell for fc2.
Primitive
@ -664,7 +666,7 @@ class Phono3py:
return self.phonon_primitive
@property
def symmetry(self):
def symmetry(self) -> Symmetry:
"""Return symmetry of supercell.
Symmetry
@ -683,7 +685,7 @@ class Phono3py:
return self.symmetry
@property
def primitive_symmetry(self):
def primitive_symmetry(self) -> Symmetry:
"""Return symmetry of primitive cell.
Symmetry
@ -702,7 +704,7 @@ class Phono3py:
return self.primitive_symmetry
@property
def phonon_supercell_symmetry(self):
def phonon_supercell_symmetry(self) -> Symmetry:
"""Return symmetry of supercell for fc2.
Symmetry
@ -1625,15 +1627,19 @@ class Phono3py:
"""
disp_dataset = self._dataset
if fc_calculator is not None:
fc3_calculator, fc3_calculator_options = self._extract_fc2_fc3_calculators(
fc_calculator, fc_calculator_options, 3
)
if fc3_calculator is not None:
disps, forces = get_displacements_and_forces_fc3(disp_dataset)
fc2, fc3 = get_fc3(
self._supercell,
self._primitive,
disps,
forces,
fc_calculator=fc_calculator,
fc_calculator_options=fc_calculator_options,
fc_calculator=fc3_calculator,
fc_calculator_options=fc3_calculator_options,
is_compact_fc=is_compact_fc,
log_level=self._log_level,
)
@ -1711,15 +1717,19 @@ class Phono3py:
else:
p2s_map = None
if fc_calculator is not None:
fc2_calculator, fc2_calculator_options = self._extract_fc2_fc3_calculators(
fc_calculator, fc_calculator_options, 2
)
if fc2_calculator is not None:
disps, forces = get_displacements_and_forces(disp_dataset)
self._fc2 = get_fc2(
self._phonon_supercell,
self._phonon_primitive,
disps,
forces,
fc_calculator=fc_calculator,
fc_calculator_options=fc_calculator_options,
fc_calculator=fc2_calculator,
fc_calculator_options=fc2_calculator_options,
atom_list=p2s_map,
log_level=self._log_level,
)
@ -2558,3 +2568,38 @@ class Phono3py:
)
print(" But this frequency is forced to be zero.")
print("=" * 61)
def _extract_fc2_fc3_calculators(self, fc_calculator, fc_calculator_options, order):
"""Extract fc_calculator and fc_calculator_options for fc2 and fc3.
fc_calculator : str
FC calculator. "|" separates fc2 and fc3. First and last
parts separated correspond to fc2 and fc3 calculators, respectively.
fc_calculator_options : str
FC calculator options. "|" separates fc2 and fc3. First and last
parts separated correspond to fc2 and fc3 options, respectively.
order : int = 2 or 3
2 and 3 indicate fc2 and fc3, respectively.
"""
if fc_calculator is not None:
if "|" in fc_calculator:
_fc_calculator = fc_calculator.split("|")[order - 2]
if _fc_calculator == "":
_fc_calculator = None
else:
_fc_calculator = fc_calculator
else:
_fc_calculator = None
if fc_calculator_options is not None:
if "|" in fc_calculator_options:
_fc_calculator_options = fc_calculator_options.split("|")[order - 2]
if _fc_calculator_options == "":
_fc_calculator_options = None
else:
_fc_calculator_options = fc_calculator_options
else:
_fc_calculator_options = None
return _fc_calculator, _fc_calculator_options

View File

@ -1165,7 +1165,7 @@ def main(**argparse_control):
)
if log_level > 1:
show_phono3py_cells(phono3py, settings)
show_phono3py_cells(phono3py)
elif log_level:
print(
"Use -v option to watch primitive cell, unit cell, "

View File

@ -89,7 +89,7 @@ def show_general_settings(
print(" %s" % v)
def show_phono3py_cells(phono3py: Phono3py, settings):
def show_phono3py_cells(phono3py: Phono3py):
"""Show crystal structures."""
primitive = phono3py.primitive
supercell = phono3py.supercell
@ -100,7 +100,7 @@ def show_phono3py_cells(phono3py: Phono3py, settings):
print_cell(primitive)
print("-" * 32 + " supercell " + "-" * 33)
print_cell(supercell, mapping=primitive.s2p_map)
if settings.phonon_supercell_matrix is not None:
if phono3py.phonon_supercell_matrix is not None:
print("-" * 19 + " primitive cell for harmonic phonon " + "-" * 20)
print_cell(phonon_primitive)
print("-" * 21 + " supercell for harmonic phonon " + "-" * 22)

View File

@ -207,6 +207,91 @@ def si_pbesol_iterha_111():
return phonopy.load(yaml_filename, log_level=1, produce_fc=False)
@pytest.fixture(scope="session")
def si_pbesol_111_222_fd(request):
"""Return Phono3py instance of Si 1x1x1.
* with symmetry
* full fc
* use alm if available on test side
"""
yaml_filename = os.path.join(current_dir, "phono3py_params_Si-111-222.yaml")
enable_v2 = request.config.getoption("--v1")
return phono3py.load(
yaml_filename,
store_dense_gp_map=enable_v2,
store_dense_svecs=enable_v2,
log_level=1,
)
@pytest.fixture(scope="session")
def si_pbesol_111_222_alm_fd(request):
"""Return Phono3py instance of Si 1x1x1.
* with symmetry
* full fc
* use alm for fc2 if available on test side
"""
pytest.importorskip("alm")
yaml_filename = os.path.join(current_dir, "phono3py_params_Si-111-222.yaml")
enable_v2 = request.config.getoption("--v1")
return phono3py.load(
yaml_filename,
store_dense_gp_map=enable_v2,
store_dense_svecs=enable_v2,
fc_calculator="alm|",
log_level=1,
)
@pytest.fixture(scope="session")
def si_pbesol_111_222_alm(request):
"""Return Phono3py instance of Si 1x1x1.
* with symmetry
* full fc
* use alm if available on test side
"""
pytest.importorskip("alm")
yaml_filename = os.path.join(current_dir, "phono3py_params_Si-111-222.yaml")
enable_v2 = request.config.getoption("--v1")
return phono3py.load(
yaml_filename,
store_dense_gp_map=enable_v2,
store_dense_svecs=enable_v2,
fc_calculator="alm",
log_level=1,
)
@pytest.fixture(scope="session")
def si_pbesol_111_222_fd_alm(request):
"""Return Phono3py instance of Si 1x1x1.
* with symmetry
* full fc
* use alm for fc3 if available on test side
"""
pytest.importorskip("alm")
yaml_filename = os.path.join(current_dir, "phono3py_params_Si-111-222.yaml")
enable_v2 = request.config.getoption("--v1")
return phono3py.load(
yaml_filename,
store_dense_gp_map=enable_v2,
store_dense_svecs=enable_v2,
fc_calculator="|alm",
log_level=1,
)
@pytest.fixture(scope="session")
def nacl_pbe(request):
"""Return Phono3py instance of NaCl 2x2x2.

View File

@ -0,0 +1,703 @@
phono3py:
version: 2.4.1
frequency_unit_conversion_factor: 15.633302
symmetry_tolerance: 1.00000e-05
physical_unit:
atomic_mass: "AMU"
space_group:
type: "Fd-3m"
number: 227
Hall_symbol: "F 4d 2 3 -1d"
primitive_matrix:
- [ 0.000000000000000, 0.500000000000000, 0.500000000000000 ]
- [ 0.500000000000000, 0.000000000000000, 0.500000000000000 ]
- [ 0.500000000000000, 0.500000000000000, 0.000000000000000 ]
supercell_matrix:
- [ 1, 0, 0 ]
- [ 0, 1, 0 ]
- [ 0, 0, 1 ]
primitive_cell:
lattice:
- [ 0.000000000000000, 2.716780015000000, 2.716780015000000 ] # a
- [ 2.716780015000000, 0.000000000000000, 2.716780015000000 ] # b
- [ 2.716780015000000, 2.716780015000000, 0.000000000000000 ] # c
points:
- symbol: Si # 1
coordinates: [ 0.875000000000000, 0.875000000000000, 0.875000000000000 ]
mass: 28.085500
- symbol: Si # 2
coordinates: [ 0.125000000000000, 0.125000000000000, 0.125000000000000 ]
mass: 28.085500
reciprocal_lattice: # without 2pi
- [ -0.184041400937646, 0.184041400937646, 0.184041400937646 ] # a*
- [ 0.184041400937646, -0.184041400937646, 0.184041400937646 ] # b*
- [ 0.184041400937646, 0.184041400937646, -0.184041400937646 ] # c*
unit_cell:
lattice:
- [ 5.433560030000000, 0.000000000000000, 0.000000000000000 ] # a
- [ 0.000000000000000, 5.433560030000000, 0.000000000000000 ] # b
- [ 0.000000000000000, 0.000000000000000, 5.433560030000000 ] # c
points:
- symbol: Si # 1
coordinates: [ 0.875000000000000, 0.875000000000000, 0.875000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 2
coordinates: [ 0.875000000000000, 0.375000000000000, 0.375000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 3
coordinates: [ 0.375000000000000, 0.875000000000000, 0.375000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 4
coordinates: [ 0.375000000000000, 0.375000000000000, 0.875000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 5
coordinates: [ 0.125000000000000, 0.125000000000000, 0.125000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 6
coordinates: [ 0.125000000000000, 0.625000000000000, 0.625000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 7
coordinates: [ 0.625000000000000, 0.125000000000000, 0.625000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 8
coordinates: [ 0.625000000000000, 0.625000000000000, 0.125000000000000 ]
mass: 28.085500
reduced_to: 5
supercell:
lattice:
- [ 5.433560030000000, 0.000000000000000, 0.000000000000000 ] # a
- [ 0.000000000000000, 5.433560030000000, 0.000000000000000 ] # b
- [ 0.000000000000000, 0.000000000000000, 5.433560030000000 ] # c
points:
- symbol: Si # 1
coordinates: [ 0.875000000000000, 0.875000000000000, 0.875000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 2
coordinates: [ 0.875000000000000, 0.375000000000000, 0.375000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 3
coordinates: [ 0.375000000000000, 0.875000000000000, 0.375000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 4
coordinates: [ 0.375000000000000, 0.375000000000000, 0.875000000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 5
coordinates: [ 0.125000000000000, 0.125000000000000, 0.125000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 6
coordinates: [ 0.125000000000000, 0.625000000000000, 0.625000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 7
coordinates: [ 0.625000000000000, 0.125000000000000, 0.625000000000000 ]
mass: 28.085500
reduced_to: 5
- symbol: Si # 8
coordinates: [ 0.625000000000000, 0.625000000000000, 0.125000000000000 ]
mass: 28.085500
reduced_to: 5
phonon_supercell_matrix:
- [ 2, 0, 0 ]
- [ 0, 2, 0 ]
- [ 0, 0, 2 ]
phonon_primitive_cell:
lattice:
- [ 0.000000000000000, 2.716780015000000, 2.716780015000000 ] # a
- [ 2.716780015000000, 0.000000000000000, 2.716780015000000 ] # b
- [ 2.716780015000000, 2.716780015000000, 0.000000000000000 ] # c
points:
- symbol: Si # 1
coordinates: [ 0.875000000000000, 0.875000000000000, 0.875000000000000 ]
mass: 28.085500
- symbol: Si # 2
coordinates: [ 0.125000000000000, 0.125000000000000, 0.125000000000000 ]
mass: 28.085500
reciprocal_lattice: # without 2pi
- [ -0.184041400937646, 0.184041400937646, 0.184041400937646 ] # a*
- [ 0.184041400937646, -0.184041400937646, 0.184041400937646 ] # b*
- [ 0.184041400937646, 0.184041400937646, -0.184041400937646 ] # c*
phonon_supercell:
lattice:
- [ 10.867120060000000, 0.000000000000000, 0.000000000000000 ] # a
- [ 0.000000000000000, 10.867120060000000, 0.000000000000000 ] # b
- [ 0.000000000000000, 0.000000000000000, 10.867120060000000 ] # c
points:
- symbol: Si # 1
coordinates: [ 0.437500000000000, 0.437500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 2
coordinates: [ 0.937500000000000, 0.437500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 3
coordinates: [ 0.437500000000000, 0.937500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 4
coordinates: [ 0.937500000000000, 0.937500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 5
coordinates: [ 0.437500000000000, 0.437500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 6
coordinates: [ 0.937500000000000, 0.437500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 7
coordinates: [ 0.437500000000000, 0.937500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 8
coordinates: [ 0.937500000000000, 0.937500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 9
coordinates: [ 0.437500000000000, 0.187500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 10
coordinates: [ 0.937500000000000, 0.187500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 11
coordinates: [ 0.437500000000000, 0.687500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 12
coordinates: [ 0.937500000000000, 0.687500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 13
coordinates: [ 0.437500000000000, 0.187500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 14
coordinates: [ 0.937500000000000, 0.187500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 15
coordinates: [ 0.437500000000000, 0.687500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 16
coordinates: [ 0.937500000000000, 0.687500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 17
coordinates: [ 0.187500000000000, 0.437500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 18
coordinates: [ 0.687500000000000, 0.437500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 19
coordinates: [ 0.187500000000000, 0.937500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 20
coordinates: [ 0.687500000000000, 0.937500000000000, 0.187500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 21
coordinates: [ 0.187500000000000, 0.437500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 22
coordinates: [ 0.687500000000000, 0.437500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 23
coordinates: [ 0.187500000000000, 0.937500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 24
coordinates: [ 0.687500000000000, 0.937500000000000, 0.687500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 25
coordinates: [ 0.187500000000000, 0.187500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 26
coordinates: [ 0.687500000000000, 0.187500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 27
coordinates: [ 0.187500000000000, 0.687500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 28
coordinates: [ 0.687500000000000, 0.687500000000000, 0.437500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 29
coordinates: [ 0.187500000000000, 0.187500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 30
coordinates: [ 0.687500000000000, 0.187500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 31
coordinates: [ 0.187500000000000, 0.687500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 32
coordinates: [ 0.687500000000000, 0.687500000000000, 0.937500000000000 ]
mass: 28.085500
reduced_to: 1
- symbol: Si # 33
coordinates: [ 0.062500000000000, 0.062500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 34
coordinates: [ 0.562500000000000, 0.062500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 35
coordinates: [ 0.062500000000000, 0.562500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 36
coordinates: [ 0.562500000000000, 0.562500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 37
coordinates: [ 0.062500000000000, 0.062500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 38
coordinates: [ 0.562500000000000, 0.062500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 39
coordinates: [ 0.062500000000000, 0.562500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 40
coordinates: [ 0.562500000000000, 0.562500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 41
coordinates: [ 0.062500000000000, 0.312500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 42
coordinates: [ 0.562500000000000, 0.312500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 43
coordinates: [ 0.062500000000000, 0.812500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 44
coordinates: [ 0.562500000000000, 0.812500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 45
coordinates: [ 0.062500000000000, 0.312500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 46
coordinates: [ 0.562500000000000, 0.312500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 47
coordinates: [ 0.062500000000000, 0.812500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 48
coordinates: [ 0.562500000000000, 0.812500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 49
coordinates: [ 0.312500000000000, 0.062500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 50
coordinates: [ 0.812500000000000, 0.062500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 51
coordinates: [ 0.312500000000000, 0.562500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 52
coordinates: [ 0.812500000000000, 0.562500000000000, 0.312500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 53
coordinates: [ 0.312500000000000, 0.062500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 54
coordinates: [ 0.812500000000000, 0.062500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 55
coordinates: [ 0.312500000000000, 0.562500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 56
coordinates: [ 0.812500000000000, 0.562500000000000, 0.812500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 57
coordinates: [ 0.312500000000000, 0.312500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 58
coordinates: [ 0.812500000000000, 0.312500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 59
coordinates: [ 0.312500000000000, 0.812500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 60
coordinates: [ 0.812500000000000, 0.812500000000000, 0.062500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 61
coordinates: [ 0.312500000000000, 0.312500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 62
coordinates: [ 0.812500000000000, 0.312500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 63
coordinates: [ 0.312500000000000, 0.812500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
- symbol: Si # 64
coordinates: [ 0.812500000000000, 0.812500000000000, 0.562500000000000 ]
mass: 28.085500
reduced_to: 33
phonon_displacements:
- atom: 1
displacement:
[ 0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 1
forces:
- [ -0.3968201400000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0005878300000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0013137700000000, 0.0000000000000000, 0.0000000000000000 ]
- [ -0.0000995000000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0013137700000000, 0.0000000000000000, 0.0000000000000000 ]
- [ -0.0000995000000000, 0.0000000000000000, 0.0000000000000000 ]
- [ -0.0116080200000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0006325800000000, 0.0000000000000000, 0.0000000000000000 ]
- [ -0.0127769400000000, 0.0027626800000000, 0.0027626800000000 ]
- [ -0.0000349800000000, 0.0002389000000000, 0.0002389000000000 ]
- [ -0.0126862100000000, 0.0026530400000000, -0.0026530400000000 ]
- [ -0.0000105600000000, 0.0002450800000000, -0.0002450800000000 ]
- [ -0.0126862100000000, -0.0026530400000000, 0.0026530400000000 ]
- [ -0.0000105600000000, -0.0002450800000000, 0.0002450800000000 ]
- [ -0.0127769400000000, -0.0027626800000000, -0.0027626800000000 ]
- [ -0.0000349800000000, -0.0002389000000000, -0.0002389000000000 ]
- [ 0.0055966400000000, -0.0026595800000000, 0.0055117400000000 ]
- [ 0.0057437400000000, -0.0027603500000000, -0.0056270800000000 ]
- [ 0.0010629100000000, -0.0002423900000000, -0.0018516200000000 ]
- [ 0.0010665800000000, -0.0002417900000000, 0.0018369600000000 ]
- [ 0.0055966400000000, 0.0026595800000000, -0.0055117400000000 ]
- [ 0.0057437400000000, 0.0027603500000000, 0.0056270800000000 ]
- [ 0.0010629100000000, 0.0002423900000000, 0.0018516200000000 ]
- [ 0.0010665800000000, 0.0002417900000000, -0.0018369600000000 ]
- [ 0.0055966400000000, 0.0055117400000000, -0.0026595800000000 ]
- [ 0.0057437400000000, -0.0056270800000000, -0.0027603500000000 ]
- [ 0.0055966400000000, -0.0055117400000000, 0.0026595800000000 ]
- [ 0.0057437400000000, 0.0056270800000000, 0.0027603500000000 ]
- [ 0.0010629100000000, -0.0018516200000000, -0.0002423900000000 ]
- [ 0.0010665800000000, 0.0018369600000000, -0.0002417900000000 ]
- [ 0.0010629100000000, 0.0018516200000000, 0.0002423900000000 ]
- [ 0.0010665800000000, -0.0018369600000000, 0.0002417900000000 ]
- [ -0.0005627700000000, 0.0007740200000000, 0.0007740200000000 ]
- [ 0.0061378400000000, 0.0007385500000000, 0.0007385500000000 ]
- [ 0.0006435800000000, 0.0007066300000000, 0.0007044100000000 ]
- [ -0.0015219800000000, 0.0011590100000000, 0.0010087700000000 ]
- [ 0.0006435800000000, 0.0007044100000000, 0.0007066300000000 ]
- [ -0.0015219800000000, 0.0010087700000000, 0.0011590100000000 ]
- [ -0.0003698300000000, 0.0009925300000000, 0.0009925300000000 ]
- [ 0.0983568200000000, 0.0709904100000000, 0.0709904100000000 ]
- [ -0.0003698300000000, -0.0009925300000000, -0.0009925300000000 ]
- [ 0.0983568200000000, -0.0709904100000000, -0.0709904100000000 ]
- [ 0.0006435800000000, -0.0007044100000000, -0.0007066300000000 ]
- [ -0.0015219800000000, -0.0010087700000000, -0.0011590100000000 ]
- [ 0.0006435800000000, -0.0007066300000000, -0.0007044100000000 ]
- [ -0.0015219800000000, -0.0011590100000000, -0.0010087700000000 ]
- [ -0.0005627700000000, -0.0007740200000000, -0.0007740200000000 ]
- [ 0.0061378400000000, -0.0007385500000000, -0.0007385500000000 ]
- [ -0.0014775900000000, -0.0009712500000000, 0.0011918000000000 ]
- [ 0.0006882300000000, -0.0007423100000000, 0.0007584100000000 ]
- [ 0.0956073500000000, -0.0655514900000000, 0.0655514900000000 ]
- [ -0.0003760000000000, -0.0009874300000000, 0.0009874300000000 ]
- [ 0.0060622000000000, -0.0007271100000000, 0.0007271100000000 ]
- [ -0.0005615200000000, -0.0007633300000000, 0.0007633300000000 ]
- [ -0.0014775900000000, -0.0011918000000000, 0.0009712500000000 ]
- [ 0.0006882300000000, -0.0007584100000000, 0.0007423100000000 ]
- [ -0.0014775900000000, 0.0011918000000000, -0.0009712500000000 ]
- [ 0.0006882300000000, 0.0007584100000000, -0.0007423100000000 ]
- [ 0.0060622000000000, 0.0007271100000000, -0.0007271100000000 ]
- [ -0.0005615200000000, 0.0007633300000000, -0.0007633300000000 ]
- [ 0.0956073500000000, 0.0655514900000000, -0.0655514900000000 ]
- [ -0.0003760000000000, 0.0009874300000000, -0.0009874300000000 ]
- [ -0.0014775900000000, 0.0009712500000000, -0.0011918000000000 ]
- [ 0.0006882300000000, 0.0007423100000000, -0.0007584100000000 ]
displacement_pairs:
- atom: 1
displacement:
[ 0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 1
forces:
- [ -0.4033438200000000, 0.0000000000000000, 0.0000000000000000 ]
- [ -0.0510168100000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0267485200000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.0267485200000000, 0.0000000000000000, 0.0000000000000000 ]
- [ 0.1015942000000000, 0.0767906600000000, 0.0767906600000000 ]
- [ 0.1015942000000000, -0.0767906600000000, -0.0767906600000000 ]
- [ 0.0988376000000000, -0.0714001300000000, 0.0714001300000000 ]
- [ 0.0988376000000000, 0.0714001300000000, -0.0714001300000000 ]
paired_with:
- atom: 1
pair_distance: 0.00000000
displacement:
[ 0.0212132034355960, 0.0212132034355960, 0.0000000000000000 ]
displacement_id: 2
forces:
- [ -0.6882462800000000, -0.2865034800000000, -0.0353495100000000 ]
- [ -0.0870028100000000, 0.0189168600000000, -0.0005074000000000 ]
- [ 0.0456347800000000, -0.0360380800000000, -0.0005076700000000 ]
- [ 0.0456408300000000, 0.0189319100000000, 0.0001729300000000 ]
- [ 0.2355310700000000, 0.2130017600000000, 0.1979257300000000 ]
- [ 0.1171800900000000, -0.0573090500000000, -0.0740353200000000 ]
- [ 0.1197739200000000, -0.0535641900000000, 0.0737051400000000 ]
- [ 0.2114884000000000, 0.1825642800000000, -0.1614039000000000 ]
- atom: 1
pair_distance: 0.00000000
displacement:
[ -0.0212132034355960, -0.0212132034355960, 0.0000000000000000 ]
displacement_id: 3
forces:
- [ -0.1182933600000000, 0.2853375300000000, 0.0060581400000000 ]
- [ -0.0149444200000000, -0.0189176100000000, 0.0000870500000000 ]
- [ 0.0078376200000000, 0.0360791500000000, 0.0000877900000000 ]
- [ 0.0078380800000000, -0.0189185500000000, -0.0000296400000000 ]
- [ -0.0226772000000000, -0.0494119600000000, -0.0306396700000000 ]
- [ 0.0843909400000000, -0.0946653700000000, -0.0772644300000000 ]
- [ 0.0791696500000000, -0.0905368300000000, 0.0710034900000000 ]
- [ -0.0233213100000000, -0.0489663700000000, 0.0306972800000000 ]
- atom: 2
pair_distance: 3.84210714
displacement:
[ 0.0212132034355960, 0.0212132034355960, 0.0000000000000000 ]
displacement_id: 4
forces:
- [ -0.4393513300000000, 0.0189090500000000, -0.0005095300000000 ]
- [ -0.3364789600000000, -0.2854665900000000, -0.0145272700000000 ]
- [ 0.0456653100000000, 0.0189207500000000, -0.0000019600000000 ]
- [ 0.0456617700000000, -0.0360689000000000, -0.0002930400000000 ]
- [ 0.1194501400000000, 0.0959393000000000, 0.0779224000000000 ]
- [ 0.2297690200000000, 0.0512539300000000, 0.0346869800000000 ]
- [ 0.2172904100000000, 0.0472277500000000, -0.0270154800000000 ]
- [ 0.1179936500000000, 0.0892847200000000, -0.0702620900000000 ]
- atom: 2
pair_distance: 3.84210714
displacement:
[ -0.0212132034355960, -0.0212132034355960, 0.0000000000000000 ]
displacement_id: 5
forces:
- [ -0.3672989900000000, -0.0189267200000000, 0.0000877200000000 ]
- [ 0.2345330300000000, 0.2855070400000000, -0.0147287900000000 ]
- [ 0.0078280000000000, -0.0189166300000000, 0.0001448600000000 ]
- [ 0.0078293900000000, 0.0360714300000000, -0.0001300100000000 ]
- [ 0.0822692400000000, 0.0590871500000000, 0.0777618400000000 ]
- [ -0.0170203100000000, -0.1952485300000000, -0.1753846900000000 ]
- [ -0.0292509500000000, -0.1996395900000000, 0.1827027400000000 ]
- [ 0.0811105800000000, 0.0520658500000000, -0.0704536600000000 ]
- atom: 3
pair_distance: 3.84210714
displacement:
[ 0.0212132034355960, 0.0212132034355960, 0.0000000000000000 ]
displacement_id: 6
forces:
- [ -0.3844087300000000, -0.0360678700000000, -0.0001101600000000 ]
- [ -0.0320949100000000, 0.0189150700000000, -0.0000103600000000 ]
- [ -0.2587491500000000, -0.2854870100000000, -0.0149260300000000 ]
- [ -0.0093257300000000, 0.0189207300000000, -0.0002845700000000 ]
- [ 0.1207477500000000, 0.0945612500000000, 0.0779178000000000 ]
- [ 0.2202212700000000, 0.0417631400000000, -0.1751917000000000 ]
- [ 0.2268817400000000, 0.0567230200000000, 0.1828626400000000 ]
- [ 0.1167277500000000, 0.0906716700000000, -0.0702576200000000 ]
- atom: 3
pair_distance: 3.84210714
displacement:
[ -0.0212132034355960, -0.0212132034355960, 0.0000000000000000 ]
displacement_id: 7
forces:
- [ -0.4222138200000000, 0.0360495100000000, -0.0003113300000000 ]
- [ -0.0699316100000000, -0.0189223400000000, 0.0001527500000000 ]
- [ 0.3122240700000000, 0.2854860200000000, -0.0143297700000000 ]
- [ 0.0628162700000000, -0.0189139000000000, -0.0001374900000000 ]
- [ 0.0838785500000000, 0.0575775900000000, 0.0777516900000000 ]
- [ -0.0266459300000000, -0.2049385600000000, 0.0345170400000000 ]
- [ -0.0196201000000000, -0.1899184800000000, -0.0271985600000000 ]
- [ 0.0794925800000000, 0.0535801600000000, -0.0704443200000000 ]
- atom: 3
pair_distance: 3.84210714
displacement:
[ 0.0000000000000000, 0.0000000000000000, 0.0300000000000000 ]
displacement_id: 8
forces:
- [ -0.4033097900000000, -0.0004219200000000, 0.0267553000000000 ]
- [ -0.0510121700000000, -0.0001049500000000, -0.0510121700000000 ]
- [ 0.0267553000000000, -0.0004219200000000, -0.4033097900000000 ]
- [ 0.0267472700000000, -0.0002468800000000, 0.0267472700000000 ]
- [ 0.1729985600000000, 0.0056896500000000, 0.1755847400000000 ]
- [ 0.0247774000000000, -0.1532820300000000, 0.0247774000000000 ]
- [ 0.1755847400000000, 0.0056896500000000, 0.1729985600000000 ]
- [ 0.0274586900000000, 0.1430984000000000, 0.0274586900000000 ]
- atom: 5
pair_distance: 2.35280051
displacement:
[ 0.0000000000000000, 0.0300000000000000, 0.0000000000000000 ]
displacement_id: 9
forces:
- [ -0.3266226200000000, 0.1044345600000000, 0.0788890100000000 ]
- [ -0.1277954800000000, 0.1014598100000000, 0.0769207300000000 ]
- [ -0.0446814000000000, 0.0988175300000000, -0.0711016800000000 ]
- [ 0.1035359000000000, 0.1015689200000000, -0.0766772700000000 ]
- [ 0.0961522900000000, -0.3320079100000000, 0.0693141900000000 ]
- [ 0.1015899600000000, -0.0500134300000000, -0.0770896400000000 ]
- [ 0.0989617600000000, -0.1224051600000000, 0.0712800900000000 ]
- [ 0.0988596000000000, 0.0981456700000000, -0.0715354400000000 ]
- atom: 5
pair_distance: 2.35280051
displacement:
[ 0.0000000000000000, -0.0300000000000000, 0.0000000000000000 ]
displacement_id: 10
forces:
- [ -0.4857199900000000, -0.1073213500000000, -0.0847825900000000 ]
- [ 0.0204062000000000, -0.0986973700000000, -0.0715086500000000 ]
- [ 0.1035686800000000, -0.1015730500000000, 0.0764909000000000 ]
- [ -0.0446402000000000, -0.0987935300000000, 0.0712639900000000 ]
- [ 0.1073213500000000, 0.4857199900000000, 0.0847825900000000 ]
- [ 0.1015730500000000, -0.1035686800000000, -0.0764909000000000 ]
- [ 0.0986973700000000, -0.0204062000000000, 0.0715086500000000 ]
- [ 0.0987935300000000, 0.0446402000000000, -0.0712639900000000 ]
- atom: 5
pair_distance: 2.35280051
displacement:
[ 0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 11
forces:
- [ -0.3017688900000000, 0.0769243200000000, 0.0769243200000000 ]
- [ 0.0479294800000000, -0.0713913700000000, -0.0713913700000000 ]
- [ 0.1283457900000000, -0.0769224500000000, 0.0768148200000000 ]
- [ 0.1283457900000000, 0.0768148200000000, -0.0769224500000000 ]
- [ -0.3045247900000000, 0.0712702400000000, 0.0712702400000000 ]
- [ 0.0504919100000000, -0.0767988500000000, -0.0767988500000000 ]
- [ 0.1255903600000000, -0.0712735700000000, 0.0713768600000000 ]
- [ 0.1255903600000000, 0.0713768600000000, -0.0712735700000000 ]
- atom: 5
pair_distance: 2.35280051
displacement:
[ -0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 12
forces:
- [ -0.5073297900000000, -0.0824294500000000, -0.0824294500000000 ]
- [ -0.1526620000000000, 0.0767819600000000, 0.0767819600000000 ]
- [ -0.0720809100000000, 0.0715253900000000, -0.0714060500000000 ]
- [ -0.0720809100000000, -0.0714060500000000, 0.0715253900000000 ]
- [ 0.5073297900000000, 0.0824294500000000, 0.0824294500000000 ]
- [ 0.1526620000000000, -0.0767819600000000, -0.0767819600000000 ]
- [ 0.0720809100000000, -0.0715253900000000, 0.0714060500000000 ]
- [ 0.0720809100000000, 0.0714060500000000, -0.0715253900000000 ]
- atom: 7
pair_distance: 2.35280051
displacement:
[ 0.0000000000000000, 0.0300000000000000, 0.0000000000000000 ]
displacement_id: 13
forces:
- [ -0.4695392200000000, 0.0935128700000000, -0.0643896700000000 ]
- [ 0.0257972800000000, 0.1017109000000000, -0.0766488300000000 ]
- [ 0.0981177400000000, 0.0988340800000000, 0.0716975900000000 ]
- [ -0.0500314700000000, 0.1015978200000000, 0.0769047300000000 ]
- [ 0.1017109000000000, 0.0257972800000000, 0.0766488300000000 ]
- [ 0.1015978200000000, -0.0500314700000000, -0.0769047300000000 ]
- [ 0.0935128700000000, -0.4695392200000000, 0.0643896700000000 ]
- [ 0.0988340800000000, 0.0981177400000000, -0.0716975900000000 ]
- atom: 7
pair_distance: 2.35280051
displacement:
[ 0.0000000000000000, -0.0300000000000000, 0.0000000000000000 ]
displacement_id: 14
forces:
- [ -0.3320081100000000, -0.0961524200000000, 0.0693141000000000 ]
- [ -0.1224047700000000, -0.0989617500000000, 0.0712801900000000 ]
- [ -0.0500132300000000, -0.1015900400000000, -0.0770897500000000 ]
- [ 0.0981453200000000, -0.0988594900000000, -0.0715358500000000 ]
- [ 0.1014598000000000, 0.1277954500000000, 0.0769210700000000 ]
- [ 0.1015689400000000, -0.1035361200000000, -0.0766773100000000 ]
- [ 0.1044345400000000, 0.3266223500000000, 0.0788889700000000 ]
- [ 0.0988175200000000, 0.0446820100000000, -0.0711014200000000 ]
- atom: 7
pair_distance: 2.35280051
displacement:
[ 0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 15
forces:
- [ -0.3045249500000000, -0.0712705200000000, 0.0712705200000000 ]
- [ 0.0504921700000000, 0.0767990900000000, -0.0767990900000000 ]
- [ 0.1255905200000000, 0.0712737800000000, 0.0713769900000000 ]
- [ 0.1255905200000000, -0.0713769900000000, -0.0712737800000000 ]
- [ 0.1283457500000000, 0.0769226400000000, 0.0768150700000000 ]
- [ 0.1283457500000000, -0.0768150700000000, -0.0769226400000000 ]
- [ -0.3017694500000000, -0.0769243000000000, 0.0769243000000000 ]
- [ 0.0479297100000000, 0.0713913700000000, -0.0713913700000000 ]
- atom: 7
pair_distance: 2.35280051
displacement:
[ -0.0300000000000000, 0.0000000000000000, 0.0000000000000000 ]
displacement_id: 16
forces:
- [ -0.4990888500000000, 0.0660110600000000, -0.0660110600000000 ]
- [ -0.1497133700000000, -0.0714077700000000, 0.0714077700000000 ]
- [ -0.0748360300000000, -0.0766574800000000, -0.0767486800000000 ]
- [ -0.0748360300000000, 0.0767486800000000, 0.0766574800000000 ]
- [ 0.0748360300000000, 0.0766574800000000, 0.0767486800000000 ]
- [ 0.0748360300000000, -0.0767486800000000, -0.0766574800000000 ]
- [ 0.4990888500000000, -0.0660110600000000, 0.0660110600000000 ]
- [ 0.1497133700000000, 0.0714077700000000, -0.0714077700000000 ]
displacement_pair_info:
number_of_singles: 1
number_of_pairs: 15

View File

@ -96,6 +96,123 @@ def test_fc3(si_pbesol_111: Phono3py):
np.testing.assert_allclose(ph.fc3[0, 1, 7], fc3_ref, atol=1e-8, rtol=0)
def test_phonon_smat_fd(si_pbesol_111_222_fd: Phono3py):
"""Test phonon smat with Si PBEsol 1x1x1-2x2x2."""
ph = si_pbesol_111_222_fd
fc3_ref = [
[
[1.07250822e-01, 1.86302073e-17, -4.26452855e-18],
[8.96414569e-03, -1.43046911e-01, -1.38498937e-01],
[-8.96414569e-03, -1.38498937e-01, -1.43046911e-01],
],
[
[-8.96414569e-03, -1.43046911e-01, -1.38498937e-01],
[-3.39457157e-02, -4.63315728e-17, -4.17779237e-17],
[-3.31746167e-01, -2.60025724e-02, -2.60025724e-02],
],
[
[8.96414569e-03, -1.38498937e-01, -1.43046911e-01],
[-3.31746167e-01, 2.60025724e-02, 2.60025724e-02],
[-3.39457157e-02, 3.69351540e-17, 5.94504191e-18],
],
]
np.testing.assert_allclose(ph.fc3[0, 1, 7], fc3_ref, atol=1e-8, rtol=0)
fc2_ref = [
[-0.20333398, -0.0244225, -0.0244225],
[-0.0244225, -0.02219682, -0.024112],
[-0.0244225, -0.024112, -0.02219682],
]
np.testing.assert_allclose(ph.fc2[0, 33], fc2_ref, atol=1e-6, rtol=0)
def test_phonon_smat_alm(si_pbesol_111_222_alm: Phono3py):
"""Test phonon smat and ALM with Si PBEsol 1x1x1-2x2x2."""
ph = si_pbesol_111_222_alm
fc3_ref = [
[
[0.10725082, 0.0, 0.0],
[-0.04225275, -0.09187669, -0.1386571],
[0.04225275, -0.1386571, -0.09187669],
],
[
[0.04225275, -0.09187669, -0.1386571],
[-0.17073504, 0.0, 0.0],
[-0.33192165, 0.02516976, 0.02516976],
],
[
[-0.04225275, -0.1386571, -0.09187669],
[-0.33192165, -0.02516976, -0.02516976],
[-0.17073504, 0.0, 0.0],
],
]
np.testing.assert_allclose(ph.fc3[0, 1, 7], fc3_ref, atol=1e-6, rtol=0)
fc2_ref = [
[-0.20333398, -0.0244225, -0.0244225],
[-0.0244225, -0.02219682, -0.024112],
[-0.0244225, -0.024112, -0.02219682],
]
np.testing.assert_allclose(ph.fc2[0, 33], fc2_ref, atol=1e-6, rtol=0)
def test_phonon_smat_alm_fd(si_pbesol_111_222_alm_fd: Phono3py):
"""Test phonon smat and ALM (fc2) FD (fc3) with Si PBEsol 1x1x1-2x2x2."""
ph = si_pbesol_111_222_alm_fd
fc3_ref = [
[
[1.07250822e-01, 1.86302073e-17, -4.26452855e-18],
[8.96414569e-03, -1.43046911e-01, -1.38498937e-01],
[-8.96414569e-03, -1.38498937e-01, -1.43046911e-01],
],
[
[-8.96414569e-03, -1.43046911e-01, -1.38498937e-01],
[-3.39457157e-02, -4.63315728e-17, -4.17779237e-17],
[-3.31746167e-01, -2.60025724e-02, -2.60025724e-02],
],
[
[8.96414569e-03, -1.38498937e-01, -1.43046911e-01],
[-3.31746167e-01, 2.60025724e-02, 2.60025724e-02],
[-3.39457157e-02, 3.69351540e-17, 5.94504191e-18],
],
]
np.testing.assert_allclose(ph.fc3[0, 1, 7], fc3_ref, atol=1e-6, rtol=0)
fc2_ref = [
[-0.20333398, -0.0244225, -0.0244225],
[-0.0244225, -0.02219682, -0.024112],
[-0.0244225, -0.024112, -0.02219682],
]
np.testing.assert_allclose(ph.fc2[0, 33], fc2_ref, atol=1e-6, rtol=0)
def test_phonon_smat_fd_alm(si_pbesol_111_222_fd_alm: Phono3py):
"""Test phonon smat and FD (fc2) ALM (fc3) with Si PBEsol 1x1x1-2x2x2."""
ph = si_pbesol_111_222_fd_alm
fc3_ref = [
[
[0.10725082, 0.0, 0.0],
[-0.04225275, -0.09187669, -0.1386571],
[0.04225275, -0.1386571, -0.09187669],
],
[
[0.04225275, -0.09187669, -0.1386571],
[-0.17073504, 0.0, 0.0],
[-0.33192165, 0.02516976, 0.02516976],
],
[
[-0.04225275, -0.1386571, -0.09187669],
[-0.33192165, -0.02516976, -0.02516976],
[-0.17073504, 0.0, 0.0],
],
]
np.testing.assert_allclose(ph.fc3[0, 1, 7], fc3_ref, atol=1e-6, rtol=0)
fc2_ref = [
[-0.20333398, -0.0244225, -0.0244225],
[-0.0244225, -0.02219682, -0.024112],
[-0.0244225, -0.024112, -0.02219682],
]
np.testing.assert_allclose(ph.fc2[0, 33], fc2_ref, atol=1e-6, rtol=0)
@pytest.mark.parametrize("pinv_solver", ["numpy", "lapacke"])
def test_fc3_lapacke_solver(si_pbesol_111: Phono3py, pinv_solver: str):
"""Test fc3 with Si PBEsol 1x1x1 using lapacke solver."""