<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear All,</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have a question about the coordinate convention of `electronicDipole` and `ionicDipole` in the QE XML output for finite electric field calculations.</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I compare the XML values against the dipoles printed in `pw.out`, I observe that:</div>
<div style="font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
- the `Electronic Dipole on Cartesian axes` in `pw.out` does not match the raw XML `electronicDipole` directly, but it does match after a basis transformation;</div>
<div style="font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
- the `Ionic Dipole on Cartesian axes` in `pw.out` is numerically identical to the raw XML `ionicDipole`.</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So I would like to ask: in the QE XML output, what coordinate system are `electronicDipole` and `ionicDipole` supposed to be in? Are both intended to be Cartesian, both crystal/lattice-axis components, or do they follow different conventions? Right now, it
seems like the `electronicDipole` are in crystal coordinates while the `ionicDipole` are in Cartesian.</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your information.</div>
<div style="direction: ltr; font-family: Helvetica, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>