<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Date: Mon, 13 Oct 2014 22:03:50 +0800<br>
From: Anjaiah Nalaparaju &lt;<a href="mailto:anjai.che@gmail.com">anjai.che@gmail.com</a>&gt;<br>
To: Discussion list for GROMACS development<br>
        &lt;<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a>&gt;<br>
Subject: Re: [gmx-developers] Regarding commit Implementation of<br>
        WAXS/SAXS refinement in MD!<br>
Message-ID:<br>
        &lt;CANEpNGj+Rdy9o+zV7e-vmBMoM11u8go1iR9Y-xH_WzpYT=<a href="mailto:TNSQ@mail.gmail.com">TNSQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Thank you for providing a detailed explanation.<br>
<br>
Actually I should focus only on asking about all atom form factors table<br>
which is &quot; sfactor_atom_nods_Fourier.xml &quot;. In this there is no solvent<br>
displaced correction so we no need to use any polynomial correction. I<br>
suppose the coefficients in these table should be close to the cromer-mann<br>
coefficients (from quantum calculations) or to be in a form to use in the<br>
following equation to calculate atomic form factor.<br>
[image: Inline image 1]<br>
<br>
As I can see the coefficients given in the .xml file are very different I<br>
would like to know what is the equation used to calculate atomic form<br>
factor. In principle, whatever the method or coefficients we use the atomic<br>
factor at q=0 will be equal to atom number. I am not clear how this is<br>
satisfied from your coefficients given in &quot; sfactor_atom_nods_Fourier.xml<br>
&quot;. For example for atom &quot;Carbon&quot; I expect sum of a1 to a5 should be equal<br>
to 6.  </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Please correct me if I have mistaken any concept in your implementation.<br></blockquote><div><br>Again, the numbers in the xml files are _not_ Cromer-Mann parameters. The numeric scattering factors are calculated for the appropriate q-grid in scattering_factors.cpp.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks for your time and kind help.<br>
Best regards<br>
<br>
<br>
<br>
<br>
On Mon, Oct 13, 2014 at 6:26 PM, Alexander Bj?rling &lt;<a href="mailto:alex.bjorling@gmail.com">alex.bjorling@gmail.com</a><br>
&gt; wrote:<br>
<br>
&gt;<br>
&gt; From: Anjaiah Nalaparaju &lt;<a href="mailto:anjai.che@gmail.com">anjai.che@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; My question is related to the unmerged patch for module waxsdebye.<br>
&gt;&gt;<br>
&gt;&gt; 1. Can anybody tell the reference for the form factor<br>
&gt;&gt; coefficients(a1-a5,b1-b5,p1-p3) in file &quot;sfactor_atom_nods_Fourier.xml&quot; or<br>
&gt;&gt; all the new .xml files on sfactors. These number look very much different<br>
&gt;&gt; from the sfactor.dat which are cromer-mann coefficients.<br>
&gt;&gt;<br>
&gt; There is no reference (yet). The numbers are different because it&#39;s a<br>
&gt; different parametrization. Since solvent-corrected form factors have a more<br>
&gt; complex shape, we&#39;ve used a short Fourier sum plus a polynomial, instead of<br>
&gt; gaussians. The form factor is calculated from these parameters in<br>
&gt; src/gromacs/waxsdebye/scattering_factors.cpp.<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2. If we use the following equation to calculate atomic form factors, at<br>
&gt;&gt; q=0  sum of co-eff a1 to a5 should be equal to the form factor value at<br>
&gt;&gt; q=0<br>
&gt;&gt; given in the publication &quot;Niebling, Bj?rling and Westenhoff, J. Appl.<br>
&gt;&gt; Cryst. 47 (2014) 1190&quot;<br>
&gt;&gt;<br>
&gt; No they shouldn&#39;t, there&#39;s also a polynomial there. Again, see<br>
&gt; scattering_factors.cpp. Have that code print out the scattering factors if<br>
&gt; you would like to test them.<br>
&gt;<br>
&gt;<br>
&gt;&gt; [image: View the MathML source]<br>
&gt;&gt;<br>
&gt;&gt; But seems the coefficients in .xml files are not corresponding to this<br>
&gt;&gt; equation.<br>
&gt;&gt;<br>
&gt;&gt; 3. How can the coefficients after displaced volume correction can be a<br>
&gt;&gt; constant value ( sfactor_atom_ds_Fourier.xml), as the displaced volume<br>
&gt;&gt; correction term also function of &quot;q&quot;. &quot;Svergun, Barberato and Koch, J<br>
&gt;&gt; Appl.<br>
&gt;&gt; Cryst. 27 (1995) 768.&quot;<br>
&gt;&gt;<br>
&gt; I&#39;m not sure what you mean by &quot;constant value&quot;.<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; 3. Where the form-factors with displaced volume corrections are<br>
&gt;&gt; calculated<br>
&gt;&gt; in the code.<br>
&gt;&gt;<br>
&gt; The displaced volume corrections are not done in the code. The scattering<br>
&gt; factors with or without the correction (depending on which xml file is<br>
&gt; used) are calculated in scattering_factors.cpp.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Gromacs Developers mailing list<br>
&gt;<br>
&gt; * Please search the archive at<br>
&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before<br>
&gt; posting!<br>
&gt;<br>
&gt; * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;<br>
&gt; * For (un)subscribe requests visit<br>
&gt; <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a><br>
&gt; or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141013/1e3304fe/attachment-0001.html" target="_blank">http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141013/1e3304fe/attachment-0001.html</a>&gt;<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image.png<br>
Type: image/png<br>
Size: 3547 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141013/1e3304fe/attachment-0001.png" target="_blank">http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141013/1e3304fe/attachment-0001.png</a>&gt;<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 14 Oct 2014 12:38:22 +0800<br>
From: Anjaiah Nalaparaju &lt;<a href="mailto:anjai.che@gmail.com">anjai.che@gmail.com</a>&gt;<br>
To: Discussion list for GROMACS development<br>
        &lt;<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a>&gt;<br>
Subject: Re: [gmx-developers] Regarding commit Implementation of<br>
        WAXS/SAXS refinement in MD!<br>
Message-ID:<br>
        &lt;<a href="mailto:CANEpNGiqX9wCH4zDuVQduWUSVJh9ed4rShadgd_XUOHQW39fWQ@mail.gmail.com">CANEpNGiqX9wCH4zDuVQduWUSVJh9ed4rShadgd_XUOHQW39fWQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hi,<br>
<br>
I understood the coefficients in .xml file. There is a coefficient &quot;a0&quot;,<br>
this is taking care of formfactor value at q=0.<br>
<br>
Best regards<br>
<br>
On Mon, Oct 13, 2014 at 10:03 PM, Anjaiah Nalaparaju &lt;<a href="mailto:anjai.che@gmail.com">anjai.che@gmail.com</a>&gt;<br>
wrote:<br>
<br>
&gt; Thank you for providing a detailed explanation.<br>
&gt;<br>
&gt; Actually I should focus only on asking about all atom form factors table<br>
&gt; which is &quot; sfactor_atom_nods_Fourier.xml &quot;. In this there is no solvent<br>
&gt; displaced correction so we no need to use any polynomial correction. I<br>
&gt; suppose the coefficients in these table should be close to the cromer-mann<br>
&gt; coefficients (from quantum calculations) or to be in a form to use in the<br>
&gt; following equation to calculate atomic form factor.<br>
&gt; [image: Inline image 1]<br>
&gt;<br>
&gt; As I can see the coefficients given in the .xml file are very different I<br>
&gt; would like to know what is the equation used to calculate atomic form<br>
&gt; factor. In principle, whatever the method or coefficients we use the atomic<br>
&gt; factor at q=0 will be equal to atom number. I am not clear how this is<br>
&gt; satisfied from your coefficients given in &quot; sfactor_atom_nods_Fourier.xml<br>
&gt; &quot;. For example for atom &quot;Carbon&quot; I expect sum of a1 to a5 should be equal<br>
&gt; to 6.<br>
&gt;<br>
&gt; Please correct me if I have mistaken any concept in your implementation.<br>
&gt;<br>
&gt; Thanks for your time and kind help.<br>
&gt; Best regards<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Oct 13, 2014 at 6:26 PM, Alexander Bj?rling &lt;<br>
&gt; <a href="mailto:alex.bjorling@gmail.com">alex.bjorling@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; From: Anjaiah Nalaparaju &lt;<a href="mailto:anjai.che@gmail.com">anjai.che@gmail.com</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; My question is related to the unmerged patch for module waxsdebye.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 1. Can anybody tell the reference for the form factor<br>
&gt;&gt;&gt; coefficients(a1-a5,b1-b5,p1-p3) in file &quot;sfactor_atom_nods_Fourier.xml&quot;<br>
&gt;&gt;&gt; or<br>
&gt;&gt;&gt; all the new .xml files on sfactors. These number look very much different<br>
&gt;&gt;&gt; from the sfactor.dat which are cromer-mann coefficients.<br>
&gt;&gt;&gt;<br>
&gt;&gt; There is no reference (yet). The numbers are different because it&#39;s a<br>
&gt;&gt; different parametrization. Since solvent-corrected form factors have a more<br>
&gt;&gt; complex shape, we&#39;ve used a short Fourier sum plus a polynomial, instead of<br>
&gt;&gt; gaussians. The form factor is calculated from these parameters in<br>
&gt;&gt; src/gromacs/waxsdebye/scattering_factors.cpp.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2. If we use the following equation to calculate atomic form factors, at<br>
&gt;&gt;&gt; q=0  sum of co-eff a1 to a5 should be equal to the form factor value at<br>
&gt;&gt;&gt; q=0<br>
&gt;&gt;&gt; given in the publication &quot;Niebling, Bj?rling and Westenhoff, J. Appl.<br>
&gt;&gt;&gt; Cryst. 47 (2014) 1190&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt; No they shouldn&#39;t, there&#39;s also a polynomial there. Again, see<br>
&gt;&gt; scattering_factors.cpp. Have that code print out the scattering factors if<br>
&gt;&gt; you would like to test them.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; [image: View the MathML source]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; But seems the coefficients in .xml files are not corresponding to this<br>
&gt;&gt;&gt; equation.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 3. How can the coefficients after displaced volume correction can be a<br>
&gt;&gt;&gt; constant value ( sfactor_atom_ds_Fourier.xml), as the displaced volume<br>
&gt;&gt;&gt; correction term also function of &quot;q&quot;. &quot;Svergun, Barberato and Koch, J<br>
&gt;&gt;&gt; Appl.<br>
&gt;&gt;&gt; Cryst. 27 (1995) 768.&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt; I&#39;m not sure what you mean by &quot;constant value&quot;.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 3. Where the form-factors with displaced volume corrections are<br>
&gt;&gt;&gt; calculated<br>
&gt;&gt;&gt; in the code.<br>
&gt;&gt;&gt;<br>
&gt;&gt; The displaced volume corrections are not done in the code. The scattering<br>
&gt;&gt; factors with or without the correction (depending on which xml file is<br>
&gt;&gt; used) are calculated in scattering_factors.cpp.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Gromacs Developers mailing list<br>
&gt;&gt;<br>
&gt;&gt; * Please search the archive at<br>
&gt;&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before<br>
&gt;&gt; posting!<br>
&gt;&gt;<br>
&gt;&gt; * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;&gt;<br>
&gt;&gt; * For (un)subscribe requests visit<br>
&gt;&gt; <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a><br>
&gt;&gt; or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141014/7a5fd5c3/attachment.html" target="_blank">http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141014/7a5fd5c3/attachment.html</a>&gt;<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image.png<br>
Type: image/png<br>
Size: 3547 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141014/7a5fd5c3/attachment.png" target="_blank">http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20141014/7a5fd5c3/attachment.png</a>&gt;<br>
<br>
------------------------------<br>
<span class=""><font color="#888888"><br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
<br>
End of gromacs.org_gmx-developers Digest, Vol 126, Issue 12<br>
***********************************************************<br>
</font></span></blockquote></div><br></div></div>