xiaoqiugood的个人博客分享 http://blog.sciencenet.cn/u/xiaoqiugood

博文

优化过程中的结构转变(对称性保持)-Thanks to Andreas

已有 3571 次阅读 2014-5-21 23:21 |个人分类:物质结构及其预测|系统分类:科研笔记

关注:

1)宝山岂能空回?如何

2)结构相变的分析

 

 

问:

Dear Andreas,      

    First of all, I hope everything goes very well with you.       Recently, I got some comments on my draft about scandium hydrides from Roald ,     " Do you have phonons of the two structures at two pressures -- say 1 atm and 100GPa? At two pressures, can you  Take the two structures, and run a linear transit between them, i.e interpolating distances  in a series of single-point calculations."    

    Could you kindly tell me  how to run a linear transit between the two structures? You can find the cif files of the NaCl-type ScH and the Cmcm ScH in the attachment.      Welcome to visit our academy some day.       Best wishes to you and your family!                         Sincerely yours,

                                             Xiaoqiu

 
 

Comments from Roald,

"the Cmcm structure looks to me like a distorted rock salt structure. If so, this needs to be said you need to say that. Moreover  its enthalpy is so close to rocksalt structure (old fig4, diamond and dotted lines)which makes me think there is a flat surface between the two structures.

Do you have phonons of the two structures at two pressures -- say 1 atm and 100GPa? At two pressures, can you  Take the two structures, and run a linear transit between them, i.e interpolating distances  in a series of single-point calculations.

 

 

答:

Dear Xiaoqiu,


       Apologies for the late reply, your email slipped to the bottom of a pile, so to speak… Are you back in China now? In any case, good to hear from you! Was your time at Cornell worth it, could you translate it into an advantageous position back in China?

    I will get in touch if I am closer to you in the future. And please do the same, you are always welcome to visit us here.

I think I know what Roald is talking about. Your Cmcm structure looks like every second plane of atoms (in the a-b plane) is shifted along the b axis, compared to the ideal rock salt structure.
   I have attached a CIF file where I shifted (within Cmcm symmetry) the Sc and H atoms such that they now form a rocksalt lattice. The distortion is small, atomic positions going from 0.75 (rock salt) to 0.817 or 0.853 for Cmcm.
        To do a linear interpolation, you need both structures in comparable unit cells. If you create VASP POSCAR’s from both your Cmcm-CIF and my modified CIF, you will have those.
      These are your starting and end points. You then create a series of POSCAR’s with linear interpolation between those two structures, both for lattice vectors and atomic positions.
    I have attached a primitive script I use for this purpose: edit the file names of your POSCAR files and the number of desired images, and you are good to go.
 
Then do a single-point calculation for each structure, and plot enthalpy as function of distortion.
   This will give you the potential energy surface.
    You may want to edit the rock salt lattice constants (in the Cmcm representation), because rock salt and Cmcm will surely have different volumes at the same pressure. Indeed, instead of single-point calculations, you can optimize the unit cell volume for each structure (keeping atomic positions and cell shape constant), that will give you a better potential energy surface.

Hope that helps, let me know if you have any questions or further problems. I promise I won’t take that long to reply again. ;)

Very best wishes,

 Andreas

 

 

附: make-interpolation.bash

 

#!/bin/bash

# Number of interpolated images
NINTERP=24

# Number of atoms in unit cell
NATOMS=4
# First frame:
POS1=CONTCAR-I41amd.vasp
# Final frame:
POS2=CONTCAR-C2m.vasp

# Pattern for interpolated file names (will be $POSINT$image.vasp):
POSINT=CONTCAR-step

A0X=`sed -n "3p" $POS1 | awk '{print $1}'`
A0Y=`sed -n "3p" $POS1 | awk '{print $2}'`
A0Z=`sed -n "3p" $POS1 | awk '{print $3}'`
B0X=`sed -n "4p" $POS1 | awk '{print $1}'`
B0Y=`sed -n "4p" $POS1 | awk '{print $2}'`
B0Z=`sed -n "4p" $POS1 | awk '{print $3}'`
C0X=`sed -n "5p" $POS1 | awk '{print $1}'`
C0Y=`sed -n "5p" $POS1 | awk '{print $2}'`
C0Z=`sed -n "5p" $POS1 | awk '{print $3}'`

for im in $(jot $((NINTERP+1)) 0 $NINTERP); do

sed -n "1,2p" $POS2 > $POSINT$im.vasp
sed -n "3p" $POS2 | awk -v ax=$A0X -v ay=$A0Y -v az=$A0Z -v im=$im -v nim=$NINTERP '{print ($1*im+ax*(nim-im))/nim,($2*im+ay*(nim-im))/nim,($3*im+az*(nim-im))/nim}' >> $POSINT$im.vasp
sed -n "4p" $POS2 | awk -v ax=$B0X -v ay=$B0Y -v az=$B0Z -v im=$im -v nim=$NINTERP '{print ($1*im+ax*(nim-im))/nim,($2*im+ay*(nim-im))/nim,($3*im+az*(nim-im))/nim}' >> $POSINT$im.vasp
sed -n "5p" $POS2 | awk -v ax=$C0X -v ay=$C0Y -v az=$C0Z -v im=$im -v nim=$NINTERP '{print ($1*im+ax*(nim-im))/nim,($2*im+ay*(nim-im))/nim,($3*im+az*(nim-im))/nim}' >> $POSINT$im.vasp
sed -n "6,7p" $POS2 >> $POSINT$im.vasp
#echo "Selective Dynamics" >> $POSINT$im.vasp
echo "Direct" >> $POSINT$im.vasp

done

for at in $(jot $NATOMS 9 $(( NATOMS + 8 )) ); do

AT0X=`sed -n "$at p" $POS1 | awk '{print $1}'`
AT0Y=`sed -n "$at p" $POS1 | awk '{print $2}'`
AT0Z=`sed -n "$at p" $POS1 | awk '{print $3}'`

for im in $(jot $NINTERP 1 $NINTERP); do

#sed -n "$at p" $POS2 | awk -v ax=$AT0X -v ay=$AT0Y -v az=$AT0Z -v im=$im -v nim=$NINTERP '{print ($1*im+ax*(nim-im))/nim,($2*im+ay*(nim-im))/nim,($3*im+az*(nim-im))/nim, " F F F"}' >> $POSINT$im.vasp
sed -n "$at p" $POS2 | awk -v ax=$AT0X -v ay=$AT0Y -v az=$AT0Z -v im=$im -v nim=$NINTERP '{print ($1*im+ax*(nim-im))/nim,($2*im+ay*(nim-im))/nim,($3*im+az*(nim-im))/nim}' >> $POSINT$im.vasp


done
done

 

 



https://blog.sciencenet.cn/blog-567091-796556.html

上一篇:Phonopy +DFPT 计算结果文件浅析
下一篇:电子结构分析-Thanks to tutor
收藏 IP: 182.136.55.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-12-25 09:49

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部