Skip to content

Interfacing Third Order IFCs with external thermal conductivity calculators #104

Answered by mesonepigreco
dafolkner asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply,

Hi, it should be possible to save the third-order force constant matrix in phonopy format.

After initializing and centering Tensor3 object as explained in the tutorial http://sscha.eu/Tutorials/tutorial_spectral/


tensor3 = CC.ForceTensor.Tensor3(dyn.structure,
                                dyn.structure.generate_supercell(supercell),
                                supercell)

# Assign the tensor3 values
d3 = np.load("d3_realspace_sym.npy")*2.0
tensor3.SetupFromTensor(d3)

# Center and apply ASR
tensor3.Center()
tensor3.Apply_ASR()

# Print it
tensor3.WriteOnFile(fname="FC3",file_format='D3Q')

You replace the WriteOnFile file_format variable with "phonopy" an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mesonepigreco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants