Deformations in different directions

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Locked
Message
Author
Neutrino

Deformations in different directions

#1 Post by Neutrino » Sat Jun 02, 2012 3:26 am

Can you give more information about what you try to model? Are you trying to strain a simulation cell in one direction (z fro example) and would like the y,x direction to relax but the z to be fixed?
Last edited by Neutrino on Sat Jun 02, 2012 3:26 am, edited 1 time in total.

Neutrino

Deformations in different directions

#2 Post by Neutrino » Tue Jun 05, 2012 11:41 pm

So in that case you need to recompile a separate version of VASP after a tiny minor modification. You may copy all the current VASP files to a new folder and modify the file constr_cell_relax.F and constr_cell_relax.f90 as follows:
In these files you will find the following lines

Code: Select all

save1=fcell(1,1)
save2=fcell(2,2)
save3=fcell(3,3)
fcell=0.0d0
fcell(1,1)=save1
fcell(2,2)=save2
fcell(3,3)=save3
If you want to fix z and relax x,y , you need to comment out two lines so the result would be:

Code: Select all

save1=fcell(1,1)
save2=fcell(2,2)
!save3=fcell(3,3)
fcell=0.0d0
fcell(1,1)=save1
fcell(2,2)=save2
!fcell(3,3)=save3
Then recompile this and generate a new executable vasp. Now with this version of VASP you need to set ISIF=3 and there is NO need for selective dynamics.

<span class='smallblacktext'>[ Edited Tue Jun 05 2012, 11:50PM ]</span>
Last edited by Neutrino on Tue Jun 05, 2012 11:41 pm, edited 1 time in total.

Locked