Dielectric tensor elements using Yambo
Posted: Mon Nov 03, 2025 5:40 pm
Hi,
I am wondering how to obtain the full dielectric tensor using Yambo. Normally, Yambo prints the dielectric function for a homogeneous material (e.g., bulk Au, graphene, bulk silicon), where the diagonal elements of the dielectric tensor — ε_xx, ε_yy, and ε_zz — are essentially identical (εxx= εyy= εzz), and the off-diagonal elements (ε_xy, ε_yx, ε_xz, ε_zx, ε_yz, ε_zy) are zero.
I have hands-on experience with such isotropic materials using Yambo. However, now I would like to study a material that exhibits anisotropic (magnetic) behavior, and therefore I need to extract all components of the dielectric tensor, including the off-diagonal ones.
From reading several Yambo forum posts regarding it, but still confused.
Can we obtain each tensor element by controlling the direction of the electric field using the LongDrXd keyword? For example:
% LongDrXd
1.000000 | 0.000000 | 0.000000 | # [Xd] [cc] Electric Field
%
Would the following correspond to each tensor component?
1.000000 | 0.000000 | 0.000000 | → εxx
0.000000 | 1.000000 | 0.000000 | → εyy
0.000000 | 0.000000 | 1.000000 | → εzz
1.000000 | 1.000000 | 0.000000 | → εxy
0.000000 | 1.000000 | 1.000000 | → εyz
Or, to obtain the off-diagonal elements, should we rotate the crystal orientation instead of changing the field direction?
I plan to use IP-RPA for this calculation.
Any guidance or suggestions would be greatly appreciated.
Thank you,
Ehsanul Azim
Master’s Student, Mechanical Engineering
University of Texas Rio Grande Valley (UTRGV)
I am wondering how to obtain the full dielectric tensor using Yambo. Normally, Yambo prints the dielectric function for a homogeneous material (e.g., bulk Au, graphene, bulk silicon), where the diagonal elements of the dielectric tensor — ε_xx, ε_yy, and ε_zz — are essentially identical (εxx= εyy= εzz), and the off-diagonal elements (ε_xy, ε_yx, ε_xz, ε_zx, ε_yz, ε_zy) are zero.
I have hands-on experience with such isotropic materials using Yambo. However, now I would like to study a material that exhibits anisotropic (magnetic) behavior, and therefore I need to extract all components of the dielectric tensor, including the off-diagonal ones.
From reading several Yambo forum posts regarding it, but still confused.
Can we obtain each tensor element by controlling the direction of the electric field using the LongDrXd keyword? For example:
% LongDrXd
1.000000 | 0.000000 | 0.000000 | # [Xd] [cc] Electric Field
%
Would the following correspond to each tensor component?
1.000000 | 0.000000 | 0.000000 | → εxx
0.000000 | 1.000000 | 0.000000 | → εyy
0.000000 | 0.000000 | 1.000000 | → εzz
1.000000 | 1.000000 | 0.000000 | → εxy
0.000000 | 1.000000 | 1.000000 | → εyz
Or, to obtain the off-diagonal elements, should we rotate the crystal orientation instead of changing the field direction?
I plan to use IP-RPA for this calculation.
Any guidance or suggestions would be greatly appreciated.
Thank you,
Ehsanul Azim
Master’s Student, Mechanical Engineering
University of Texas Rio Grande Valley (UTRGV)