Debian Codegraph @

doc/tutorialsexercises/opticalresponse/tddft/inducedfield/inducedfield.rst

raw
1 .. _inducedfield:
2
3 ===============================================================
4 Induced density oscillations and electric near field from TDDFT
5 ===============================================================
6
7 Calculating Fourier transform of the density oscillation at
8 the resonant frequencies of a systems is a great way of analyzing
9 the excitations.
10 Induced density oscillations and the resulting electric near field
11 can be calculated for finite systems from
12 :ref:`inducedfield_timepropagation` or :ref:`inducedfield_casida`.
13
14 For details of the implementation, see Ref. [#Rossi2013]_.
15
16 .. _inducedfield_timepropagation:
17
18 Time-propagation TDDFT
19 ===========================================
20
21 See :ref:`timepropagation` for instructions how to use time-propagation TDDFT.
22
23 Within time-propagation TDDFT, the induced density is obtained as an on-the-fly
24 Fourier transform.
25 A restriction of this iterative approach is that the frequencies of interest
26 must be given at initialization, that is, before time propagation.
27
28 Example code for time-propagation calculation
29
30 .. literalinclude:: timepropagation_calculate.py
31
32 Example code for continuing time-propagation
33
34 .. literalinclude:: timepropagation_continue.py
35
36 Induced electric potential and near field are calculated after time-propagation as follows:
37
38 .. literalinclude:: timepropagation_postprocess.py
39
40 Plotting example (run in serial mode, i.e., with one process)
41
42 .. literalinclude:: timepropagation_plot.py
43
44 |na2_td_Frho| |na2_td_Fphi| |na2_td_Ffe|
45
46 .. |na2_td_Frho| image:: na2_td_Frho.png
47 .. |na2_td_Fphi| image:: na2_td_Fphi.png
48 .. |na2_td_Ffe| image:: na2_td_Ffe.png
49
50
51 TODO: notes about AE/comp corrections, extending grid
52
53 .. _inducedfield_casida:
54
55 Linear response TDDFT (Casida's equation)
56 ===========================================
57
58 See :ref:`lrtddft` for instructions how to use linear response TDDFT.
59
60 Example code for linear response calculation
61
62 .. literalinclude:: casida_calculate.py
63
64 Induced electric potential and near field are calculated as post-processing step as follows:
65
66 .. literalinclude:: casida_postprocess.py
67
68 Plotting example (same as in time propagation)
69
70 .. literalinclude:: casida_plot.py
71
72 |na2_casida_Frho| |na2_casida_Fphi| |na2_casida_Ffe|
73
74 .. |na2_casida_Frho| image:: na2_casida_Frho.png
75 .. |na2_casida_Fphi| image:: na2_casida_Fphi.png
76 .. |na2_casida_Ffe| image:: na2_casida_Ffe.png
77
78
79 References
80 ==========
81
82 .. [#Rossi2013]
83 T. P. Rossi,
84 Simulating electric field enhancement in plasmonic nanomaterials,
85 Master's thesis, Aalto University (2013).
86 `<https://urn.fi/URN:NBN:fi:aalto-201309137662>`_