In [1]:
import sys, numpy
sys.path.extend(['/home/aksenov/Simulation_wrapper/siman'])
from calc_manage import smart_structure_read
from geo import create_deintercalated_structure
st = smart_structure_read(input_geo_file = 'in/Na2FePO4F.POSCAR') #read initial structure from POSCAR
st1 = create_deintercalated_structure(st, 'Na', del_pos = 1) #find non-equivalent positions of Na and remove position 1
st2 = create_deintercalated_structure(st, 'Na', del_pos = 2) #find non-equivalent positions of Na and remove position 2
In [2]:
st.write_xyz()
st1.write_xyz()
st2.write_xyz()
To remover all atoms a general method can be used
In [ ]:
stDS = st.remove_atoms(['Na'])