<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://sobereva.com/wfnbbs/extern.php?action=feed&amp;tid=1460&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / modify function]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=1460</link>
		<description><![CDATA[The most recent posts in modify function.]]></description>
		<lastBuildDate>Tue, 09 Jul 2024 05:28:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: modify function]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4373#p4373</link>
			<description><![CDATA[<p>Derivative at nuclear position cannot be obtained. In the case of good promolecular density, for each element, Multiwfn has an array recording radial density of its isolated state, and Lagrangian interpolation is used to obtain the value and derivatives at any radial distance. At nuclear position, the interpolation is not feasible, because it is the starting position of radial density.</p><p>In fact, it is well-known that electron density at nuclear position is ill-defined, because there is a cusp of electron density at this point (see <a href="https://en.wikipedia.org/wiki/Kato_theorem" rel="nofollow">https://en.wikipedia.org/wiki/Kato_theorem</a>).</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Tue, 09 Jul 2024 05:28:45 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4373#p4373</guid>
		</item>
		<item>
			<title><![CDATA[modify function]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4368#p4368</link>
			<description><![CDATA[<p>i need to modify this part of &#039;calchessmat_prodens&#039; subroutine to get good promolecular density and calculate its derivatives for all elements. the following part of code doesnt calculate derivatives in the nuclear positions (but value of promolecular density is good calculated), however, in non-nuclear positions the derivative is calculated normally, what should I write in the following code to get derivatives in nuclear positionsn? (i ask this because if i use &quot;output prop in point&quot; for the iuserfunc==-2 function then i get derivatives at nuclear positions, but in the case below (elerho from my new calchessmat_prodens) i don&#039;t get derivatives of elerho in nuclear positions, only value)</p><div class="codebox"><pre><code>                if (iele&gt;=1) then
                    if (r&gt;atmrhocut(iele)) cycle
		            call genatmraddens(iele,rhoarr,npt) !Extract spherically averaged radial density of corresponding element at specific grids
		            if (idohess==0) then
						call lagintpol(atmradpos(1:npt),rhoarr(1:npt),npt,r,term,der1r,der2r,2)
		            else if (idohess==1) then
						call lagintpol(atmradpos(1:npt),rhoarr(1:npt),npt,r,term,der1r,der2r,3)
                    end if
		            elerho=elerho+term
		            der1rdr=der1r/r
		            derx=derx+der1rdr*rx
		            dery=dery+der1rdr*ry
		            derz=derz+der1rdr*rz
		            if (idohess==1) then
			            tmpval=(der2r-der1rdr)/r2
			            dxx=dxx+der1rdr+tmpval*rx2
			            dyy=dyy+der1rdr+tmpval*ry2
			            dzz=dzz+der1rdr+tmpval*rz2
			            dxy=dxy+tmpval*rx*ry
			            dyz=dyz+tmpval*ry*rz
			            dxz=dxz+tmpval*rx*rz
		            end if
	            end if</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Alexey)]]></author>
			<pubDate>Mon, 08 Jul 2024 16:30:00 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4368#p4368</guid>
		</item>
	</channel>
</rss>
