<?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=1663&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Multiwfn forum / Batching multiple cube generation for several compound]]></title>
		<link>http://sobereva.com/wfnbbs/viewtopic.php?id=1663</link>
		<description><![CDATA[The most recent posts in Batching multiple cube generation for several compound.]]></description>
		<lastBuildDate>Fri, 23 May 2025 14:22:34 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5100#p5100</link>
			<description><![CDATA[<p>this could be overcome i files generate by multiwfn differ, e.g. by prefix, instead of being constiently l or h, this cause overwriting when i iterate</p><p>E.g. this code doesnt work:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash

# Save the current directory
start_dir=$(pwd)

# Find .mwfn files and process each
find . -type f -name &quot;*.mwfn&quot; | sort | while read -r fullpath; do
    # Extract directory and filename
    dir=$(dirname &quot;$fullpath&quot;)
    file=$(basename &quot;$fullpath&quot;)

    echo &quot;Processing $file in $dir&quot;

    # Change to the file&#039;s directory
    cd &quot;$dir&quot; || continue

    # Run Multiwfn with input commands
    /Users/apm/Applications/Wineskin/Multiwfn.app/Contents/MacOS/wineskinlauncher &lt;&lt; EOF
$file
200
3
h
2
3
l
2
0
r
EOF

    # Wait 15 seconds before processing the next file
    sleep 60

    # Return to the original directory
    cd &quot;$start_dir&quot; || exit
done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (andrzejek)]]></author>
			<pubDate>Fri, 23 May 2025 14:22:34 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5100#p5100</guid>
		</item>
		<item>
			<title><![CDATA[Re: Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5099#p5099</link>
			<description><![CDATA[<p>Unfortunately,&#160; it does for me— My computer freezes and I am not able to do anything. I need to reset it</p>]]></description>
			<author><![CDATA[dummy@example.com (andrzejek)]]></author>
			<pubDate>Thu, 22 May 2025 07:43:54 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5099#p5099</guid>
		</item>
		<item>
			<title><![CDATA[Re: Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5096#p5096</link>
			<description><![CDATA[<p>It doesn&#039;t matter, no extra computational cost.</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Wed, 21 May 2025 02:55:52 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5096#p5096</guid>
		</item>
		<item>
			<title><![CDATA[Re: Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5095#p5095</link>
			<description><![CDATA[<p>But this results in multiple Multiwfn instances being run one by one, instead of reloading.</p>]]></description>
			<author><![CDATA[dummy@example.com (andrzejek)]]></author>
			<pubDate>Tue, 20 May 2025 20:14:33 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5095#p5095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5093#p5093</link>
			<description><![CDATA[<p>Please check Section 5.3 of Multiwfn manual, where I described how to use Multiwfn in batch mode by writting Linux shell script</p>]]></description>
			<author><![CDATA[dummy@example.com (sobereva)]]></author>
			<pubDate>Tue, 20 May 2025 16:24:10 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5093#p5093</guid>
		</item>
		<item>
			<title><![CDATA[Batching multiple cube generation for several compound]]></title>
			<link>http://sobereva.com/wfnbbs/viewtopic.php?pid=5091#p5091</link>
			<description><![CDATA[<p>Hello<br />In my current directory [.] are folders named after *.mwfn generated with NTO for different excitations (S1, T1, T2...). So it is like</p><div class="codebox"><pre><code>./compound1-S1/compound1-S1.mwfn
./compound1-T1/compound1-T1.mwfn
./compound2-S1/compound2-S1.mwfn
./compound2-T1/compound2-T1.mwfn
./compound2-T2/compound2-T2.mwfn</code></pre></div><p>I need to generate CUBES for occupied and virtual orbitals for each .mwfn file. The commands sequence is:</p><div class="codebox"><pre><code>200
3
h
2
3
l
2
0</code></pre></div><br /><p>Can you share batch code to do that? I dont know programming and doing it manually is cumbersome <img src="http://sobereva.com/wfnbbs/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (andrzejek)]]></author>
			<pubDate>Tue, 20 May 2025 10:47:17 +0000</pubDate>
			<guid>http://sobereva.com/wfnbbs/viewtopic.php?pid=5091#p5091</guid>
		</item>
	</channel>
</rss>
