Commit f9f419f1 authored by kuismam's avatar kuismam

Add realistic spectrum calculation

parent 1bf70ce6
def agts(queue):
basis = queue.add('', ncpus=1, walltime=1)
queue.add('', deps=[basis], ncpus=64, walltime=1)
ag55 = queue.add('', deps=[basis], ncpus=64, walltime=120)
queue.add('', deps=[ag55], creates='fig1.png')
......@@ -288,6 +288,11 @@ This code uses ScaLAPACK parallelization with 64 cores.
.. literalinclude::
Code runs for approximately two wall hours. The resulting spectrum shows already emerging plasmonic excitation around 4 eV.
For more details, see [#Kuisma2015]_.
.. image:: fig1.png
Advanced tutorial - large organic molecule
import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(6, 6 / 2**0.5))
data = np.loadtxt('ag55.spec')
plt.plot(data[:,0], data[:,1],'k')
plt.title(r'Absorption spectrum of $Ag_{55}$ with GLLB-SC potential')
plt.ylabel('Absorption (arbitary units)')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment