Last active
May 22, 2016 14:29
-
-
Save mcocdawc/65f5940165ec3988c4ae36b81d8d50f8 to your computer and use it in GitHub Desktop.
Calculate grid files from RasOrb, ScfOrb... files with molcas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*GRID PROGRAM | |
&GATEWAY | |
Title = GRID Calculation | |
coord = Coordfile_for_GRID_IT | |
basis = ANO-XS-VDZ | |
# TODO choose symmetry accordingly | |
group=C1 | |
>>COPY $CurrDir/Orbfile_for_GRID_IT $WorkDir/INPORB | |
&GRID_IT | |
Sparse | |
*all | |
*ASCII | |
>> COPY $WorkDir/$Project.grid $CurrDir/Gridfile_from_GRID_IT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
location=$(which grid_molcas) | |
location=${location%/*} | |
cp $location/.grid.input ./grid_tmp.input | |
project=${1%.*} | |
filetype=${1##*.} | |
#sed -i "s/Orbfile_for_GRID_IT/$1.Orb/g" grid_tmp.input | |
sed -i "s/Orbfile_for_GRID_IT/$project.$filetype/g" grid_tmp.input | |
sed -i "s/Gridfile_from_GRID_IT/$project.grid/g" grid_tmp.input | |
sed -i "s/Coordfile_for_GRID_IT/$2/g" grid_tmp.input | |
# TODO change according to your molcas start | |
molcas -f grid_tmp.input | |
# TODO outcomment following line to see the .log and .err files from the grid calculation. | |
rm grid_tmp.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script calculates grid files from MOLCAS ScfOrb, RasOrb... files.
Just put both files in a directory which is in your path and start it with:
You have to be aware of several things. Change .grid.input accordingly: