<?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=1535&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / Multiwfn gradient question]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=1535</link>
		<description><![CDATA[The most recent posts in Multiwfn gradient question.]]></description>
		<lastBuildDate>Thu, 03 Oct 2024 22:15:36 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Multiwfn gradient question]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4630#p4630</link>
			<description><![CDATA[<p>If you have large amount of grids to be calculated, I suggest writing a subroutine and call it in proper place (for example, you can add a new option in main menu by modifying Multiwfn.f90 to call it). The content of the subroutine could be, e.g.:</p><div class="codebox"><pre><code>open(11,file=&quot;grad.txt&quot;,status=&quot;replace&quot;)
do i=1,ngrid
  write(11,&quot;(6f16.8)&quot;) gridx(i),gridy(i),grid(z),fgrad(gridx(i),gridy(i),grid(z),&#039;x&#039;),fgrad(gridx(i),gridy(i),grid(z),&#039;y&#039;),fgrad(gridx(i),gridy(i),grid(z),&#039;z&#039;)
end do
close(11)</code></pre></div><p>where gridx(i), gridy(i), gridz(i) are Cartesian coordinate components of grid i in Bohr.</p><p>After calling this subroutine, you will obtain grad.txt, which contains coordinate of every grid and gradient components.</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Thu, 03 Oct 2024 22:15:36 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4630#p4630</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiwfn gradient question]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4629#p4629</link>
			<description><![CDATA[<p>I see what you mean by cube files. I am not dealing with cube files, i am exporting as a .txt file.</p>]]></description>
			<author><![CDATA[dummy@example.com (Amin)]]></author>
			<pubDate>Thu, 03 Oct 2024 20:53:47 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4629#p4629</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiwfn gradient question]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4628#p4628</link>
			<description><![CDATA[<p>Hello,</p><p>I just cant seem to compile the file. I keep getting errors during the make process. I am trying to figure out how to resolve this. </p><p>I want to avoid making three files as I will be doing my own processing on the information. It would simplify my workflow by limiting I/O operations by putting all information into one file per instance of Multiwfn running. If this isn&#039;t possible then I will stick to trying to get the previous functions to run. </p><p>I am curious if there another way to script getting this information from Main function menu, function 1 where you get&#160; &quot;Components of gradient in x/y/z are:&quot; </p><p>Thank you for the quick response last time.</p>]]></description>
			<author><![CDATA[dummy@example.com (Amin)]]></author>
			<pubDate>Thu, 03 Oct 2024 20:17:17 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4628#p4628</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiwfn gradient question]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4627#p4627</link>
			<description><![CDATA[<p>Hello,</p><p>I don&#039;t exactly know what problem you&#039;re having... Your code is correct, after recompiling, Multiwfn will be able to calculate X,Y,Z gradient components of electron density using your user-defined functions 6000, 6001, 6002, respectively.</p><p>As for &quot;I want to avoid creating 3 separate grid files per grid file.&quot;, I don&#039;t know why you do not hope to create three cube files. Gradient is a vector, while cube file normally records scalar functions, so it is very common to record its different components as different cube files.</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Thu, 03 Oct 2024 19:58:52 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4627#p4627</guid>
		</item>
		<item>
			<title><![CDATA[Multiwfn gradient question]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=4626#p4626</link>
			<description><![CDATA[<p>Hello, </p><p>I am a big fan of your work and use it constantly. Thank you for all your hard work!</p><p>I have recently come across an issue of my own. I need a compute the gradient components of the electron density (grad_x, grad_y, grad_z) on and input grid I feed into Multiwfn. I am have tried going through the &quot;Modifying source code<br />of Multiwfn&quot; and am trying to build Multiwfn from source after adding the following userfunc:</p><p>case (6000)<br />&#160; &#160; userfunc=fgrad(x,y,z,&#039;x&#039;)<br />case (6001)<br />&#160; &#160; userfunc=fgrad(x,y,z,&#039;y&#039;)<br />case (6002)<br />&#160; &#160; userfunc=fgrad(x,y,z,&#039;z&#039;)</p><p>However since this is all new to me I am coming across some errors. Hopefully I can figure this out soon. However this would be a little inefficient form my needs as I will potentially be processing thousands of grids at a given instance. I want to avoid creating 3 separate grid files per grid file. <br />I am a little unclear on how to add my own functions for your pdf. I am trying to figure this out. I have two questions here. </p><p>1) Do you have any more tutorials that might go a little more in depth about modifying Multiwfn source code?<br />2) Is there an already existing function that I am unaware of that can out put the x, y, z, grad_x, grad_y, grad_z? </p><p>Thank you for your time</p>]]></description>
			<author><![CDATA[dummy@example.com (Amin)]]></author>
			<pubDate>Thu, 03 Oct 2024 19:51:32 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=4626#p4626</guid>
		</item>
	</channel>
</rss>
