##master-page:HelpTemplate ##master-date:Unknown-Date #format wiki #language en #Please change following line to BDF module name = expandmo = <> {{{ Module expandmo is used to expand molecular orbital from a small basis set into a large basis set and construct automated MCSCF active space by Atomic Valence Active Space (AVAS) and imposed CAS (iCAS) by keywords VCMO and VLMO based on target atomic valence orbitals for CMO and FLMO/LMO, respectively. This module can be used to generate initial guess orbital of a large basis set calculation from the converged orbital of a small basis set calculation. Also, the expanded orbital can be used in dual-basis calculation approaches. AVAS is proposed by Garnet Kin-Lic Chan et al.(JCTC, 13, 4063-4078, 2017.) The AO basis set can also be generated and saved on file $BDF_WORKDIR/$BDFTASK.aobas for iCAS method. }}} == General keywords == === Overlap === {{{#!wiki Overlap is used to expand molecular orbital from a small basis set into a large basis set. }}} === MINAO === {{{#!wiki form all orthonormal MINBAS as OAO of the molecular system. For example: $expandmo minao $end }}} === MINBAS === {{{#!wiki set valence AO such as five 3d atomic orbitals as target atomic orbitals. This is recommended with Lowdin orthonormalization AO. Example file is test080.inp, test086.inp, test100.inp. When PHOsp is set, the corresponding VAOs of PHO are set with the order of 2S0, 2P-1, 2P0 and 2P1 for the first to fourth PHOs as the AO order of SCF module. The PHOs order can be found by keyword the preceding MINAO calculations for AOs with PHOsp for hybridation of some AOs. minbas 5 1Co|3D-2 1Co|3D-1 1Co|3D0 1Co|3D1 1Co|3D2 }}} === PHOSP === {{{#!wiki set modified Project Hybrid Orbital (PHO) like VAOs. This keyword can be used to generate some Hybrid atomic orbitals for VAOs. For sp2 hybridation, the Pz orbital for conjugated orbitals can also be generated as the fourth PHOs and the first PHO is usually set as the first Sigma orbital with the set first neighbour atom. For safety, please first use keyword MINAO to find the rule of MINBAS by PHOsp generation. This keyword only support MINBAS selection of VAOs. Example file is test086.inp. For example: phosp 2 ! two atoms have been hybrided 2 1 2 3 4 0 !# the first numbe is main quantum number n = 2, which means hybrid 2s and 2p orbitals, the second number means atom 1 is hybrided to sp2 with atom 2 (third number), 3 (fourth number) and 4 (fifth number), the last 0 (sixth number) means only three ligand atoms. If the last numbe is nonzero atom 1 is sp3 hybridation. All the following 2s and 2p labels of atom 1 need to be set on module expandmo for assignment hybrid AOs. 1C|2S0 ! set 2s of atom 1 1C|2P0 ! set 2pz of atom 1 1C|2P1 ! set 2px of atom 1 1C|2P-1 ! set 2py of atom 1 2 2 1 5 6 0 !# the first numbe is main quantum number n = 2, which means hybrid 2s and 2p orbitals, the second number means atom 2 is hybrided to sp2 with atom 1 (third number), 5 (fourth number) and 6 (fifth number), the last 0 (sixth number) means only three ligand atoms. If the last numbe is nonzero atom 2 is sp3 hybridation. All the following 2s and 2p labels of atom 2 need to be set on module expandmo for assignment hybrid AOs. 2C|2S0 ! set 2s of atom 2 2C|2P0 ! set 2pz of atom 2 2C|2P1 ! set 2px of atom 2 2C|2P-1 ! set 2py of atom 2 }}} === VAOBAS === {{{#!wiki set valence AO such as five 3d atomic orbitals as target atomic orbitals. This keyword do not support VCMO. example file is test086.inp 10 - 14 are the number of target 3d VOAO. vaobas 5 10 11 12 13 14 }}} === AOPXYZ === {{{#!wiki rotate each OAO 2p orbital so that the new Pz is vertical to molecular plan. For example, there are two Pi fragments the first one has comprised 4 pz (which is the number of first p orbitals) AOs of 3 12 21 30, and the second one has 2 AOs of 41 52. Notice that the AO index of each atom is the first p orbital of each subshell and all the p orbitals of this subshell are rotated. aopxyz 2 4 ! first number = 2 fragments, second number = AO number of the largest fragment. 4 ! AO number of the first fragment 3 12 21 30 ! AO index of the first fragment 2 ! AO number of the second fragment 41 52 ! AO index of the second fragment }}} === MINPXYZ === {{{#!wiki rotate each MINBAS Pi planar fragment so that the new Pz is vertical to molecular plan. Notice that the AO symbol of each atom is the first p orbital of each subshell and all the p orbitals of this subshell are rotated. minpxyz 1 6 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 }}} === SETPXYZ === {{{#!wiki set the order of px, py, pz on the for each block of VOAO set. For example: setpxyz z x y ! this means the first p orbital is pz and then px and py in order for the first block. Default is z y x for AOBAS and y z x for MINBAS. }}} === INCPXYZ === {{{#!wiki set the order of px, py, pz on the MINBAS set and AOBAS needs not to set this increment. For example: incpxyz 2 ! this means that there are two p orbital for each p component, such as 2pz, 3pz and 2px, 3px and 2py, 3py in order. ! default is 1. }}} === NOAO === {{{#!wiki only print all AOs of the molecular system to help users to find VAOs on active sites. For example: $expandmo noao $end }}} === VOAO === {{{#!wiki form only VOAOs of the molecular system. For example: $expandmo voao 5 10 11 12 13 14 $end }}} === OAO === {{{#!wiki form all OAOs of the molecular system. For example: $expandmo oao $end }}} === ACTLMO === {{{#!wiki form all orthonormal active LMOs from the corresponding subsystems. For example: need files $BDF_WORKDIR/$BDFTASK.actfrag1 from localmo with file name $BDF_WORKDIR/$BDFTASK.actfrag for orbital information and $BDF_WORKDIR/$BDFTASK.actcoef1 from expandmo with file name $BDF_WORKDIR/$BDFTASK.exporb for LMOs of 1-th subsystem as so on. $expandmo vlmo occao 4 4 ! occupied Alpha MO and Beta MO actlmo 4 ! four subsystems have active LMOs 14 1 0 1 ! 1-th subsystem : number of inactive, doubly occupied active LMOs, singly occupied active LMOs, unoccupied active LMOs 21 1 0 1 ! 2-th subsystem : number of inactive, doubly occupied active LMOs, singly occupied active LMOs, unoccupied active LMOs 21 1 0 1 ! 3-th subsystem : number of inactive, doubly occupied active LMOs, singly occupied active LMOs, unoccupied active LMOs 14 1 0 1 ! 4-th subsystem : number of inactive, doubly occupied active LMOs, singly occupied active LMOs, unoccupied active LMOs 5 4 4 5 ! effective Atom of each subsystem 1 2 3 4 5 ! 1-th subsystem : index of effective Atom on whole system. 6 7 8 9 ! 2-th subsystem : index of effective Atom on whole system. 10 11 12 13 ! 3-th subsystem : index of effective Atom on whole system. 14 15 16 17 18 ! 4-th subsystem : index of effective Atom on whole system. $end }}} === VACTMO === {{{#!wiki set index of some of active LMOs set by ACTLMO. For example: $expandmo vactmo 5 10 11 12 13 14 $end }}} === AVAS === {{{#!wiki Atomic Valence Active Space (AVAS) is used to automated construction MCSCF active space by set atomic valence orbitals. }}} === VLMO === {{{#!wiki Contract Fock matrix to valence AO (VAO) and diagonalize Fock and localize VCMOs to obtain valence LMO (pre-LMO) and automated selection of active LMOs or FLMOs. This function only supports the system without symmetry. }}} === VCMO === {{{#!wiki Contract Fock matrix to VAO and diagonalize Fock to obtain valence CMO (pre-CMO) and automated selection of active CMOs. For ROHF, default is that occupied space = doubly + singly occupied spaces. This function supports the system with symmetry of D2h and subgroup. }}} === Nonlocal === {{{#!wiki For VLMO scheme, when use CMO as initial MOs, do not localize pre-CMOs and only match pre-CMOs and CMOs and does not transform CMOs. Default is .false. }}} === Bmat === {{{#!wiki For VLMO scheme, use B matrix elements of occupied and virtual spaces to match pre-CMOs/LMOs and CMOs/LMOs. Default is .false. }}} === Bmat2 === {{{#!wiki For VLMO scheme, use squared B matrix elements of occupied and virtual spaces to match pre-CMOs/LMOs and CMOs/LMOs. Default is .false. }}} === MOM === {{{#!wiki For VLMO scheme, use occupation number of occupied and virtual spaces by MOM scheme to match pre-CMOs/LMOs and CMOs/LMOs. Default is .true. }}} === Alpha === {{{#!wiki Set valence AO occupied alpha for VCMO (pre-CMO). For example: alpha 0 0 1 1 0 2 0 0 }}} === Beta === {{{#!wiki Set valence AO occupied beta for VCMO (pre-CMO). For example: beta 0 0 0 1 0 1 0 0 }}} === OCCAO === {{{#!wiki Set VAO occupied alpha and Beta number for VCMO (pre-CMO) and VLMO (pre-LMO). The keyword for VCMO is equal to keyword alpha and beta without symmetry. If users do not set this keyword, alpha and beta electron occupation number are automatically assigned. Notice that the automatic assignment may be failed when the pre-CMOs are evidently mismatched with CMOs. If so, users can set keyword "SetMOM" to tune doubly occupied space. If user want to use keyword "ActLMO" for connect active orbitals of fragments, the keywrod "Occao" is needed. For safty, please set occao or use alpha and beta for the system with symmetry where the occupation pattern can not be correctly set by orbital energy order. For example: occao 5 3 }}} === SetMOM === {{{#!wiki Set threshold of Maximum Occupation Number (MOM). Default : 0.5 }}} === NONOCC === {{{#!wiki Set do not separately match occupied and virtual VCMOs or VLMOs with CMOs or LMOs for VCMO or VLMO scheme. If .true. all the VCMOs or VLMOs will match with CMOs or LMOs. Default is .false. }}} === ENECUT === {{{#!wiki set CMO index which will not be used for pre-CMO and pre-LMO if the occupied (virtual) orbital energies of pre-CMOs are too low (or high). These pre-CMOs formed by selected VOAOs have been save as view molden file of $BDFTASK.vcmoorb.molden. For example: enecut 2 ! there are two CMOs will be deleted. 1 6 ! the cutted CMO index is 1 and 6, respectively. }}} === SortPreCMO === {{{#!wiki Sort Pre-CMO. For example: sortprecmo 2 ! there are two CMOs will be sorted. 1 5 ! 1 <==> 2 and 5 <===6>. 2 6 }}} === SortPreLMO === {{{#!wiki Sort Pre-LMO. For example: sortprelmo 2 ! there are two LMOs will be sorted. 1 5 ! 1 <==> 2 and 5 <===6>. 2 6 }}} === FOCKCMO === {{{#!wiki canonicalize selected LMO to CMO when set this keywrod. Default is .false. }}} === CMOSELE === {{{#!wiki set CMO index which will be used as semicanonical CMOs for both pre-CMO and pre-LMO if the occupied (virtual) orbital energies of them are too low (or high). For example: cmosele 2 2 ! semicanonical CMO numbers for occupied and virtual active CMOs/LMOs. 1 2 ! semicanonical CMO indexes for occupied active CMOs/LMOs. The index is only for the active CMOs/LMOs so that the inactive number have to be deleted. 5 6 ! semicanonical CMO indexes for virtual active CMOs/LMOs. The index is only for the active CMOs/LMOs so that the inactive number have to be deleted. }}} === ROHF === {{{#!wiki This keyword treat doubly and singly occupied spaces separately for both VCMO and VLMO for ROHF/UHF CMO/LMO. Default is .true. }}} === UHF === {{{#!wiki This keyword treat doubly and singly occupied spaces together for both VCMO and VLMO for ROHF/UHF CMO/LMO. Default is .false. }}} === SVD === {{{#!wiki Use SVD to assign active CMOs for VCMO if .true., or use SL=L(lammda)^2. }}} === Maxcycle === {{{#!wiki Maximum number of iterations allowed for localization. }}} === Localmo === {{{#!wiki Localization of VCMO both with and without symmetry by usual localization methods such as Pipek-Mezey and Boys localizations, default : Pipek-Mezey localization. Notice: only Pipek-Mezey and cholesky localizations work on molecules with symmetry. }}} === Print === {{{#!wiki Print localizing information of VCMO localization. Example: Print 3 }}} == Expert keywords == === Socc === {{{#!wiki set threshold to cut small overlap between MOs and target atomic orbitals for occupied active orbitals by AVAS and VCMO. Default : 0.1 For example: Socc 0.1 }}} === Svir === {{{#!wiki set threshold to cut small overlap between MOs and target atomic orbitals for virtual active orbitals by AVAS and VCMO. Default : 0.1 For example: Svir 0.1 }}} === Nearocc === {{{#!wiki set threshold to find nearby occupied occupation number for keyword MOM on VLMO scheme. Default : 0.3 For example: nearocc 0.3 }}} === Nearvir === {{{#!wiki set threshold to find nearby virtual occupation number for keyword MOM on VLMO scheme. Default : 0.3 For example: nearvir 0.3 }}} === Focc === {{{#!wiki set threshold to cut small elements of overlap B matrix between MOs and target AOs for occupied active orbitals by VLMO. Default : 0.3 }}} === Fvir === {{{#!wiki set threshold to cut small elements of overlap B matrix between MOs and target AOs for virtual active orbitals by VLMO. Default : 0.3 }}} = Depend Files = || Filename || Description || Format || || task.chkfil1 || Check file of the small basis set calculation. || Binary || || task.chkfil2 || Check file of the large basis set calculation. || Binary || || INPORB || MO coefficients file of small basis set calculation. || Fomatted || || task.exporb || Expanded MO coefficients. Save in BDF_WORKDIR || Formatted || = Examples = == Example1 == * Here, we would calculate CH2 molecule by a small basis set CC-PVDZ. Then the converged orbital will be expanded to aug-CC-PVDZ and used as the initial orbital for SCF calculation. The input file "ch2.inp" looks like {{{ # First we perform a small basis set calculation by using CC-PVDZ. $COMPASS Title CH2 Molecule test run, cc-pvdz Basis cc-pvdz Geometry C 0.000000 0.00000 0.31399 H 0.000000 -1.65723 -0.94197 H 0.000000 1.65723 -0.94197 End geometry UNIT Bohr Check $END $XUANYUAN $END $SCF RHF Occupied 3 0 1 0 $END #Change the name of check file. %mv $BDF_WORKDIR/ch2.chkfil $BDF_WORKDIR/ch2.chkfil1 #Copy SCF converged orbital to work directory inporb. %mv $BDF_WORKDIR/ch2.scforb $BDF_WORKDIR/ch2.inporb # Then we init a large basis set calculation by using aug-CC-PVDZ $COMPASS Title CH2 Molecule test run, aug-cc-pvdz Basis aug-cc-pvdz Geometry C 0.000000 0.00000 0.31399 H 0.000000 -1.65723 -0.94197 H 0.000000 1.65723 -0.94197 End geometry UNIT Bohr Check $END # Change name of check file for large basis set. %mv $BDF_WORKDIR/ch2.chkfil $BDF_WORKDIR/test001_1.chkfil2 # Now we expand orbital. $expandmo $end # Change name of check file for large basis set. %mv $BDF_WORKDIR/ch2.chkfil2 $BDF_WORKDIR/ch2.chkfil # Copy expanded orbital to work directory scforb as initial guess orbital. %mv $BDF_WORKDIR/ch2.exporb $BDF_WORKDIR/ch2.scforb $xuanyuan $end # Read expanded orbital as initial guess orbital. $scf RHF Occupied 3 0 1 0 Guess Read $end }}} == Example2 == * Here we calculate RHF/6-31G(d) and localize CMOs to LMOs by PM localization for benzene, and then automate selection of CAS(6,6) by AVAS and VCMO or VLMO methods and perform CASSCF(6,6)/6-31G(d) with respective to CMOs and LMOs, respectively. Here ANO-RCC-VDZ formed MINBAS or 6-31G(d) formed VOAOs are employed as auxiliary VAOs. We prefer using the same basis set as SCF calculation to form VOAOs in comparison with MINBAS and recommend to employ AVAS and VCMO to CMO and VLMO to LMO. {{{ $COMPASS Title C6H6 test run, cc-pvdz Basis ano-rcc-vdz Geometry C -2.70374913 -1.20160278 -0.03131724 C -3.36877041 -0.96275704 -1.24504929 C -3.38068484 -0.97253941 1.17694524 C -4.68569944 -0.49452990 -1.24739460 H -2.85736558 -1.17024585 -2.18724091 C -4.69462877 -0.50213841 1.16749678 H -2.86196360 -1.16496360 2.11713128 C -5.35413285 -0.26031975 -0.04310413 H -5.19325874 -0.32216946 -2.19941675 H -5.20574150 -0.31828054 2.11549401 H -6.38350643 0.10446223 -0.04635751 H -1.67454236 -1.56659596 -0.01732426 End geometry nosym norotate $END %cp $BDF_WORKDIR/$BDFTASK.chkfil $BDF_WORKDIR/$BDFTASK.chkfil1 $COMPASS Title C6H6 test run, cc-pvdz Basis 6-31gp Geometry C -2.70374913 -1.20160278 -0.03131724 C -3.36877041 -0.96275704 -1.24504929 C -3.38068484 -0.97253941 1.17694524 C -4.68569944 -0.49452990 -1.24739460 H -2.85736558 -1.17024585 -2.18724091 C -4.69462877 -0.50213841 1.16749678 H -2.86196360 -1.16496360 2.11713128 C -5.35413285 -0.26031975 -0.04310413 H -5.19325874 -0.32216946 -2.19941675 H -5.20574150 -0.31828054 2.11549401 H -6.38350643 0.10446223 -0.04635751 H -1.67454236 -1.56659596 -0.01732426 End geometry nosym $END $XUANYUAN $END $SCF rohf spin 3 atomorb $END $localmo flmo pipek Maxcycle 1000 $end %cp $BDF_WORKDIR/$BDFTASK.chkfil $BDF_WORKDIR/$BDFTASK.chkfil2 $expandmo minao $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.01 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.01.molden $expandmo minao minbas 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 minpxyz 1 6 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 setpxyz y z x incpxyz 2 $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.02 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.02.molden $expandmo noao $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.03 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.03.molden $expandmo voao 6 3 17 31 45 61 77 aopxyz 1 6 6 3 17 31 45 61 77 setpxyz z x y $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.04 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.04.molden %cp $BDF_WORKDIR/$BDFTASK.scforb $BDF_WORKDIR/$BDFTASK.inporb $expandmo avas minbas 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 minpxyz 1 6 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 setpxyz y z x incpxyz 2 $end $expandmo vcmo alpha 4 beta 2 minbas 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 minpxyz 1 6 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 setpxyz y z x incpxyz 2 socc 1.d-8 svir 1.d-8 $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.1 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.1.molden %cp $BDF_WORKDIR/$BDFTASK.localorb $BDF_WORKDIR/$BDFTASK.inporb $expandmo vlmo occao 4 2 minbas 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 minpxyz 1 6 6 1C|2P-1 2C|2P-1 3C|2P-1 4C|2P-1 6C|2P-1 8C|2P-1 setpxyz y z x incpxyz 2 $end $expandmo vlmo occao 4 2 vaobas 6 3 17 31 45 61 77 aopxyz 1 6 6 3 17 31 45 61 77 setpxyz z x y nearocc 0.3 nearvir 0.3 $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.2 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.2.molden $localmo flmo cdloc Maxcycle 1000 $end %cp $BDF_WORKDIR/$BDFTASK.localorb $BDF_WORKDIR/$BDFTASK.inporb $expandmo vlmo cdloc occao 4 2 vaobas 6 3 17 31 45 61 77 aopxyz 1 6 6 3 17 31 45 61 77 setpxyz z x y nearocc 0.3 nearvir 0.3 $end %cp $BDF_WORKDIR/$BDFTASK.exporb $BDF_WORKDIR/$BDFTASK.exporb.3 %cp $BDF_WORKDIR/$BDFTASK.exporb.molden $BDF_WORKDIR/$BDFTASK.exporb.3.molden %cp $BDF_WORKDIR/$BDFTASK.exporb.1 $BDF_WORKDIR/$BDFTASK.inporb $MCSCF close 18 active 6 actele 6 spin 3 symmetry 1 ROOTPRT 1 prtcri 0.1 molden guess read $END %cp $BDF_WORKDIR/$BDFTASK.mcscf.molden $BDF_WORKDIR/$BDFTASK.mcscf.1.molden %cp $BDF_WORKDIR/$BDFTASK.exporb.2 $BDF_WORKDIR/$BDFTASK.inporb $MCSCF close 18 active 6 actele 6 spin 3 symmetry 1 ROOTPRT 1 prtcri 0.1 molden guess read localmc $END %cp $BDF_WORKDIR/$BDFTASK.mcscf.molden $BDF_WORKDIR/$BDFTASK.mcscf.2.molden %cp $BDF_WORKDIR/$BDFTASK.exporb.3 $BDF_WORKDIR/$BDFTASK.inporb $MCSCF close 18 active 6 actele 6 spin 3 symmetry 1 ROOTPRT 1 prtcri 0.1 molden guess read localmc $END %cp $BDF_WORKDIR/$BDFTASK.mcscf.molden $BDF_WORKDIR/$BDFTASK.mcscf.3.molden }}}