Commit 827ec776 authored by Thorbjørn Skovhus's avatar Thorbjørn Skovhus

added tms interface to get component

parent 94664f67
......@@ -148,7 +148,7 @@ class FourComponentSusceptibilityTensor:
def get_component(self, spincomponent, q_c, frequencies,
store_ecut=50, filename=None, txt=None):
"""Calculates a specific spincomponent component of the
"""Calculates a specific spin component of the
susceptibility tensor and writes it to a file.
Parameters
......
......@@ -42,6 +42,28 @@ class TransverseMagneticSusceptibility(FCST):
frequencies, filename=filename,
txt=txt)
def get_component(self, spincomponent, q_c, frequencies,
store_ecut=50, filename=None, txt=None):
"""Calculates a specific spin component of the
transverse magnetic susceptibility and writes it to a file.
Parameters
----------
spincomponent : str
'+-': calculate chi+-, '-+: calculate chi-+
q_c, frequencies,
store_ecut, filename, txt : see gpaw.response.susceptibility
Returns
-------
see gpaw.response.susceptibility
"""
assert spincomponent in ['+-', '-+']
return FCST.get_component(self, spincomponent, q_c,
frequencies, store_ecut=store_ecut,
filename=filename, txt=txt)
def _calculate_component(self, spincomponent, pd, wd):
"""Calculate a transverse magnetic susceptibility element.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment