<div dir="ltr"><div>Dear Lin,</div><div><br></div><div>I am not at all an expert on the issue, but I do have this example file online. Also once you obtain the dipole moment as a function of time, you can perform a Fourier transform of the data. I have attached a python script to transform the data. Make sure it works properly yourself and make sure you read about why this works :-). The output you want for the spectrum should be called something like ch2o_pbe_rtp-output-moments.dat. I tried this for quantum dots and it didn't work. Maybe different timestep and basis/ potential are needed. Also, I don't know if the script can handle these small numbers. </div><div><br></div><div>Good luck,</div><div><br></div><div>Mario</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 10, 2020 at 4:03 PM lin xiong <<a href="mailto:xiongl...@gmail.com" target="_blank">xiongl...@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote>Hi all,<br>    <br><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"></blockquote>    Recently I learned that cp2k code has two ways to calculate the absorption spectrum, namely real time propagation TDDFT and TDDFPT. I would like to ask some questions about using rt-TDDFT to calculate the spectra.<div><br><div>    1. First of all, I would like to ask if my input file is correct? If the input file is correct, then there are two additional questions: 2. In which file (as shown in the figure below) is the data used to draw the spectrum stored? 3. How to use these data to plot the spectrum? </div></div><div><br></div><p style="text-align:center;clear:both"><img src="cid:d73af009-61c3-4c19-801a-da5bebc8de1b" alt="25.jpg" style="margin-left: 1em; margin-right: 1em;" title="" width="320" height="113"></p><div><br></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "cp2k" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp...@googlegroups.com" target="_blank">cp...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/75ac4790-b50d-4289-b5aa-a8385584f19ao%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/cp2k/75ac4790-b50d-4289-b5aa-a8385584f19ao%40googlegroups.com</a>.<br>
</blockquote></div>