<div dir="ltr">Dear Hande,<br>Thanks for helping me. It really works and really solves my problem. Just one thing to ask is that, while plotting the bands structure, it generates file.xmgr file. The x-axis are the k-points. But my question is the k-points are three no. (e.g. like 0.5 0.5 0.5), but it convert it in a single number. Can you please tell me the formula, with which it convert?<br>
Its a very basic question. And sorry for asking that.<br>regards<br><br><div class="gmail_quote">On Thu, Aug 7, 2008 at 11:31 AM, Hande Ustunel <span dir="ltr"><<a href="mailto:hande@newton.physics.metu.edu.tr">hande@newton.physics.metu.edu.tr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">> > And what is /awk/java/whathever_you_are_familiar_with ?<br>
<br>
</div>I believe what Stefano meant is just take any known computer language<br>
(which fortran, awk, bash, java each are) or any other one you are already<br>
using and write a simple code that generates a given number of points<br>
between two arbitrary points in space. I would suggest octave or matlab if<br>
you are unfamiliar with coding. Maybe something like this :<br>
<br>
function ks=get_points(point1,point2,nks)<br>
<br>
kx = [linspace(point1(1),point2(1),nks)]';<br>
ky = [linspace(point1(2),point2(2),nks)]';<br>
kz = [linspace(point1(3),point2(3),nks)]';<br>
<br>
<br>
ks=[ kx ky kz ones(nks,1)];<br>
<br>
endfunction<br>
<br>
Just copy this into a file called get_points.m, start octave (you should<br>
already have this, assuming you are using linux), type something like<br>
get_points([0 0 0], [1 0 0], 25) and copy and paste the result in your<br>
input. You have to repeat this for each pair of points. Make sure you don't<br>
repeat the same point (say K) twice because plotband really hates<br>
that. Also beware that I put in the weights in the above script assuming<br>
that you are running an nscf or a bands calculation where it doesn't matter<br>
what you have for weights. If you are running anything else it does.<br>
<br>
Hope this helps.<br>
Hande<br>
<font color="#888888"><br>
--<br>
Hande Toffoli<br>
Department of Physics<br>
Office 439<br>
Middle East Technical University<br>
Ankara 06531, Turkey<br>
Tel : +90 312 210 3264<br>
<a href="http://www.physics.metu.edu.tr/%7Ehande" target="_blank">http://www.physics.metu.edu.tr/~hande</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Bipul Rakshit<br>PhD Student, <br>Barkatullah University,<br>Bhopal 462026,<br>MP, India<br>
</div>