File: node8.html

package info (click to toggle)
espresso 6.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,068 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,503; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (271 lines) | stat: -rw-r--r-- 12,230 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2019.2 (Released June 5, 2019) -->
<HTML lang="EN">
<HEAD>
<TITLE>5 Files produced by ph.x</TITLE>
<META NAME="description" CONTENT="5 Files produced by ph.x">
<META NAME="keywords" CONTENT="developer_man">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
<META NAME="Generator" CONTENT="LaTeX2HTML v2019.2">

<LINK REL="STYLESHEET" HREF="developer_man.css">

<LINK REL="next" HREF="node9.html">
<LINK REL="previous" HREF="node7.html">
<LINK REL="next" HREF="node9.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A
 HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 
<A
 HREF="developer_man.html">
<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 
<A
 HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 
<A ID="tex2html42"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A>  
<BR>
<B> Next:</B> <A
 HREF="node9.html">6 The routines of</A>
<B> Up:</B> <A
 HREF="developer_man.html">User's Guide for the</A>
<B> Previous:</B> <A
 HREF="node7.html">4 Parallelization</A>
 &nbsp; <B>  <A ID="tex2html43"
  HREF="node1.html">Contents</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A ID="SECTION00060000000000000000">
5 Files produced by ph.x</A>
</H1>

<P>
The output files of the <TT>pw.x</TT> code are not modified by the <TT>ph.x</TT> code. 
Each image of <TT>ph.x</TT> creates a new directory called <TT>outdir/_ph#</TT> 
where it writes its files. <TT>#</TT> is an integer equal to <TT>0</TT> 
in a calculation with one image or to the image number when the 
<TT>-nimage</TT> flag is used. 
There are two sets of files written 
by <TT>ph.x</TT> in the <TT>outdir/_ph#</TT> directories: unformatted files 
containing internal arrays, and <TT>.xml</TT> 
files containing partial results or tensors. The former are in 
<TT>outdir/_ph#</TT> if the input flag <TT>lqdir=.false.</TT>, or in 
separate subdirectories <TT>outdir/_ph#/prefix.q_#iq</TT>,
where <TT>#iq</TT> is the number of the <B>q</B> point. Note that if 
<TT>lqdir=.false.</TT> (default is <TT>lqdir=elph</TT>)
the disk occupation is reduced but the files of each <B>q</B> point are
rewritten by the following <B>q</B> so it is not possible to run an 
electron-phonon calculation with <TT>trans=.false.</TT> and 
<TT>ldisp=.true.</TT> after generating the induced potentials for a mesh of 
<B>q</B> points. 
The <TT>.xml</TT> files calculated by each image are in the 
<TT>outdir/_ph#/prefix.phsave</TT> directory for all <B>q</B>-vectors and 
irreps calculated by that images. Before closing the image calculation 
the content of all the <TT>outdir/_ph#/prefix.phsave</TT>
directories are copied into <TT>outdir/_ph0/prefix.phsave</TT> directory, so
it is possible to recover the calculation without using images.
The <TT>ph.x</TT> code reads the output of <TT>pw.x</TT> from the <TT>outdir</TT> directory. 
The wavefunctions are in <TT>outdir/prefix.wfc</TT> files 
while information on the structure of the solid and on the <TT>pw.x</TT> 
run are in the <TT>outdir/prefix.save</TT> directory. The wavefunctions are 
also in this directory if <TT>pw.x</TT> was run with the <TT>wf_collect=.true.</TT> 
flag. These files are not modified by <TT>ph.x</TT>. 
At a finite <B>q</B> vector, <TT>ph.x</TT> runs its own instance of <TT>pw.x</TT> to compute the bands and saves the results into 
the <TT>outdir/_ph#/prefix.q_#iq</TT> directory (<TT>lqdir=.true.</TT>) or
in <TT>outdir/_ph#</TT>. The charge density is copied inside 
these directories before calculating the bands. The output of <TT>pw.x</TT> is 
in files called <TT>outdir/_ph#/prefix.q_#iq/prefix.wfc</TT> and in 
the directory 
<TT>outdir/_ph#/prefix.q_#iq/prefix.save</TT> (<TT>lqdir=.true.</TT>),
or in <TT>outdir/_ph#/prefix.wfc</TT> and in 
<TT>outdir/_ph#/prefix.save</TT> (<TT>lqdir=.false.</TT>). With
<TT>lqdir=.false.</TT> <TT>ph.x</TT> saves in 
<TT>outdir/_ph#/prefix.bar</TT> the
non self-consistent part of the right hand side of the linear system, 
in <TT>outdir/_ph#/prefix.dwf</TT> the change of the wavefunctions. 
The files <TT>outdir/_ph#/</TT> <TT>prefix.igk</TT> contain the <!-- MATH
 ${\bf k}+{\bf G}$
 -->
<IMG STYLE="height: 1.63ex; vertical-align: -0.10ex; " SRC="img3.png"
 ALT="$\bf k$"> + <IMG STYLE="height: 1.69ex; vertical-align: -0.10ex; " SRC="img4.png"
 ALT="$\bf G$"> 
lists as in the <TT>pw.x</TT> run.
With US or PAW, files called <TT>outdir/_ph#/prefix.prd</TT> 
contain the induced charge density, for all modes. 
Only the part that does not depend on the perturbed wavefunctions 
is contained in these files. With electric field perturbations 
there are also files called <TT>outdir/_ph#/prefix.com</TT> that 
contain <!-- MATH
 $P_c x |\psi\rangle$
 -->
<I>P</I><SUB>c</SUB><I>x</I>| <I>ψ</I>〉 and are needed for the calculation 
of the Born effective charges.
The mixing routine saves its data in files called 
<TT>outdir/_ph#/prefix.mixd</TT>. 
The status of <TT>ph.x</TT> is saved at each iteration in files called
<TT>outdir/_ph#/prefix.recover</TT>. These files can be used 
to recover the run. All these unformatted files are saved in 
<TT>outdir/_ph#/prefix.q_#iq</TT> directory when <TT>lqdir=.true.</TT>.
Using the input flag <TT>reduce_io=.true.</TT> these files can be
kept in memory and saved only at the end of the run if necessary.

<P>
In parallel calculations, previous files are split into several files 
that have a final number. Each number labels the processor that wrote the 
file. There are as many files as processors per image. 

<P>
The files with the dynamical matrices are written in the directory in
which <TT>ph.x</TT> is started and are called <TT>fildyn#iq</TT> where 
<TT>#iq</TT> is the <B>q</B>-vector number in a dispersion calculation, 
or is not added in a single-<B>q</B> calculation. Only one copy of this 
file is written in a parallel run. When the <TT>-nimage</TT> option
is used some of these files might be empty (if the corresponding <B>q</B>
point has been divided between two or more images). The results are
collected running <TT>ph.x</TT> another time (with <TT>recover=.true.</TT>)
without images.

<P>
Moreover <TT>ph.x</TT> opens a directory called <TT>outdir/_ph#/prefix.phsave</TT>.
This directory contains the partial information on the calculation.
These files can be used to recover a run also when the recover file 
is corrupted. In the directory <TT>outdir/_ph#/prefix.phsave</TT> the 
files are in <TT>.xml</TT> format. Note that this directory is
always in <TT>outdir/_ph#/</TT> also when <TT>lqdir=.true.</TT>.
There are several files:

<P>
<TT>control_ph.xml</TT> contains information on the flags that control
what <TT>ph.x</TT> calculates. The content of this file is used mainly for 
checking purposes. The code reads these flags in input and does not need
to reread them from file, but a recover run in which these flags change 
is not allowed. <TT>control_ph.xml</TT> contains also the mesh of 
<B>q</B>-vectors and their coordinates. This file is written only in a non 
recovered calculation from the routine <TT>check_initial_status</TT> after 
the creation of the <B>q</B>-vector mesh. It is read, if 
<TT>recover=.true.</TT>, at the beginning of 
the run by <TT>phq_readin</TT>.

<P>
<TT>status_run.xml</TT> contains information that tell <TT>ph.x</TT> 
at which point the code stopped. It has information on the current 
<B>q</B> vector, the current frequency, and a recover code that tells 
<TT>ph.x</TT> if it has to expect a recover file and which routine produced this 
recover file. 
<TT>status_run.xml</TT> file is rewritten each time the phonon code 
reaches a point from which a new recover is possible.
It is read, if <TT>recover=.true.</TT>,
at the beginning of the run by <TT>phq_readin</TT>.

<P>
If some routine wrote it, <TT>tensors.xml</TT> contains the tensors that
have been calculated. Possible tensors are: dielectric constant, 
Born effective charges calculated as derivative of the forces (EU), 
Born effective charges calculated as derivative of the polarization (UE), 
raman tensor, electro-optic coefficient. This file is written by the 
routines that calculate the tensors. 
It is read by the routine <TT>phq_recover</TT>, if <TT>recover=.true.</TT> 
and the <B>q</B> vector is <I>Γ</I>.

<P>
If <TT>polariz</TT> wrote it, <TT>polariz.xml</TT> contains the frequency
dependent polarizabilities for the frequencies calculated so far. 
It is read by the routine 
<TT>phq_recover</TT>, if <TT>recover=.true.</TT> and the <B>q</B> vector
is <I>Γ</I>.

<P>
<TT>patterns.#iq.xml</TT> are files written for each <B>q</B> vector 
(<TT>#iq</TT> is its number).
They contain the information on the displacement patterns that 
transform according to irreducible representations of the small 
group of <B>q</B>: number of irreducible representations, their dimensions, 
the displacement patterns and the name of the irreducible representation 
to which each mode belongs. It is written in nonrecover runs by the routine 
<TT>init_representations</TT>.
It is read for each <B>q</B> vector by <TT>phq_setup</TT>. The routine
reads the data of the file with <TT>iq=current_iq</TT>.

<P>
<TT>dynmat.#iq.0.xml</TT> contains the part of the dynamical matrix 
calculated by <TT>dynmat0</TT> that does not depend on the perturbed 
wavefunctions. It is written by <TT>dynmat0</TT> and read only in recover runs
by <TT>phq_recover</TT>.

<P>
<TT>dynmat.#iq.#irr.xml</TT>
contains the contribution to the dynamical matrix at the 
<B>q</B> vector <TT>#iq</TT> of
the representation <TT>#irr</TT>. 
Note that these files can be calculated independently even on 
different machines and collected in a single directory (see the GRID example),
but it is necessary to calculate the patterns file in a single machine and
send it to all the machine where the calculation is run to be sure that
all machines use the same displacement patterns.
When the files <TT>dynmat.#iq.#irr.xml</TT> are present for all 
<TT>#irr</TT> of a given <TT>#iq</TT> the dynamical matrix for that 
<IMG STYLE="height: 1.52ex; vertical-align: -0.55ex; " SRC="img5.png"
 ALT="$\bf q$"> can be calculated. If all the <TT>#irr</TT> of a given symmetry 
for a given <TT>#iq</TT> are present, 
the partial dynamical matrix that can be constructed with this information 
can be diagonalized and the frequencies of the modes of that symmetry can 
be calculated (using the <TT>ldiag=.true.</TT> flag).
These files are written by <TT>phqscf</TT> after calculating the 
contribution of the representation to the dynamical matrix by 
<TT>drhodv</TT>. They are read only in recover runs by the routine 
<TT>phq_recover</TT>.

<P>
<TT>elph.#iq.#irr.xml</TT> contains the contribution to the electron 
phonon coefficients 
at the <B>q</B> vector <TT>#iq</TT> of the representation <TT>#irr</TT>. 
These files are written by <TT>elphel</TT> and contain the quantities 
<!-- MATH
 $g_{{\bf q}\nu} ({\bf k}, i, j)$
 -->
<I>g</I><SUB><IMG STYLE="height: 1.05ex; vertical-align: -0.40ex; " SRC="img2.png"
 ALT="$\scriptstyle \bf q$"><I>ν</I></SUB>(<IMG STYLE="height: 1.63ex; vertical-align: -0.10ex; " SRC="img3.png"
 ALT="$\bf k$">, <I>i</I>, <I>j</I>) 
(see User Manual). They are read in recover runs by the routine 
<TT>phq_recover</TT>.

<P>
<HR>
<!--Navigation Panel-->
<A
 HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 
<A
 HREF="developer_man.html">
<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 
<A
 HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 
<A ID="tex2html42"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A>  
<BR>
<B> Next:</B> <A
 HREF="node9.html">6 The routines of</A>
<B> Up:</B> <A
 HREF="developer_man.html">User's Guide for the</A>
<B> Previous:</B> <A
 HREF="node7.html">4 Parallelization</A>
 &nbsp; <B>  <A ID="tex2html43"
  HREF="node1.html">Contents</A></B> 
<!--End of Navigation Panel-->

</BODY>
</HTML>