-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare cosmo implementation for use with post scf methods. (#666)
- Loading branch information
Showing
7 changed files
with
243 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
type(gbsa_parameter),parameter :: gfn_cosmo = gbsa_parameter ( & | ||
76.36000000_wp, & | ||
18.00000000_wp, & | ||
1.00000000_wp, & | ||
1.00000000_wp, & | ||
1.30000000_wp, & | ||
0.00000000_wp, & | ||
0.00000000_wp, & | ||
0.00000000_wp, & | ||
(/ -0.08499967_wp, 0.46780225_wp, -2.87013596_wp, -3.95935069_wp, -0.29783987_wp, & | ||
-0.48323273_wp, 0.00133622_wp, 0.20448945_wp, 0.20150600_wp, 0.36379863_wp, & | ||
-3.47082133_wp, -0.93451053_wp, -1.46342018_wp, -0.32774697_wp, -0.38015204_wp, & | ||
-0.35311116_wp, -0.19972593_wp, -0.12891363_wp, -1.19450558_wp, -1.61289300_wp, & | ||
-4.68022533_wp, 3.22705056_wp, -1.76349679_wp, -1.78246886_wp, -1.41389733_wp, & | ||
-2.03424961_wp, -13.15585203_wp, -0.60232543_wp, -0.51255518_wp, -1.05389890_wp, & | ||
-0.80992362_wp, -0.04534252_wp, -0.48402589_wp, -0.34738945_wp, -0.31467674_wp, & | ||
-0.13545936_wp, -1.19984632_wp, -1.57439157_wp, -7.77905850_wp, -0.25386776_wp, & | ||
-1.36181862_wp, -1.89986750_wp, -1.66264106_wp, 0.63693473_wp, -0.42449931_wp, & | ||
-0.73041159_wp, -0.48383194_wp, -0.60860050_wp, -1.34579404_wp, -0.28314431_wp, & | ||
-0.58997478_wp, -0.50506060_wp, -0.36680822_wp, -0.28828614_wp, -1.50384745_wp, & | ||
-1.72772005_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, -0.95945946_wp, -0.97138135_wp, -2.83432331_wp, -2.01934203_wp, & | ||
-1.19296724_wp, -0.73245256_wp, -0.58420150_wp, -0.43386368_wp, -0.70607621_wp, & | ||
-0.73268812_wp, -1.00876694_wp, -0.52518304_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp /), & | ||
(/ 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, 0.30000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp, & | ||
0.80000000_wp, 0.80000000_wp, 0.80000000_wp, 0.80000000_wp /), & | ||
(/ 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp, & | ||
0.00000000_wp, 0.00000000_wp, 0.00000000_wp, 0.00000000_wp /) ) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ srcs += files( | |
'paulingen.f90', | ||
'sqrtzr4r2.f90', | ||
'vdwradd3.f90', | ||
'vdwradcosmo.f90', | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
! This file is part of xtb. | ||
! | ||
! Copyright (C) 2019-2020 Sebastian Ehlert | ||
! | ||
! xtb is free software: you can redistribute it and/or modify it under | ||
! the terms of the GNU Lesser General Public License as published by | ||
! the Free Software Foundation, either version 3 of the License, or | ||
! (at your option) any later version. | ||
! | ||
! xtb is distributed in the hope that it will be useful, | ||
! but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
! GNU Lesser General Public License for more details. | ||
! | ||
! You should have received a copy of the GNU Lesser General Public License | ||
! along with xtb. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
!> Cosmo van-der-Waals radii | ||
|
||
module xtb_param_vdwradcosmo | ||
use xtb_mctc_accuracy, only : wp | ||
use xtb_mctc_convert, only : aatoau | ||
use xtb_mctc_symbols, only : toNumber | ||
implicit none | ||
private | ||
|
||
public :: getVanDerWaalsRadCosmo, vanDerWaalsRadCosmo | ||
|
||
|
||
!> Get van-der-Waals Rad for a species | ||
interface getVanDerWaalsRadCosmo | ||
module procedure :: getVanDerWaalsRadCosmoSymbol | ||
module procedure :: getVanDerWaalsRadCosmoNumber | ||
end interface getVanDerWaalsRadCosmo | ||
|
||
|
||
!> Default value for unoptimized van-der-Waals radii | ||
real(wp), parameter :: cosmostub = 2.223_wp | ||
|
||
!> COSMO optimized van-der-Waals radii | ||
real(wp), parameter :: vanDerWaalsRadCosmo(94) = aatoau * [ & | ||
& 1.3000_wp, 1.6380_wp, 1.5700_wp, 1.0530_wp, & ! h-be | ||
& 2.0480_wp, 2.0000_wp, 1.8300_wp, 1.7200_wp, & ! B-O | ||
& 1.7200_wp, 1.8018_wp, 1.8000_wp, 1.6380_wp, & ! F-Mg | ||
& 2.1530_wp, 2.2000_wp, 2.1060_wp, 2.1600_wp, & ! Al-S | ||
& 2.0500_wp, 2.2000_wp, 2.2230_wp, cosmostub, & ! Cl-Ca | ||
& cosmostub, 2.2930_wp, cosmostub, cosmostub, & ! Sc-Cr | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Mn-Ni | ||
& cosmostub, 1.6260_wp, cosmostub, 2.7000_wp, & ! Cu-Ge | ||
& 2.3500_wp, 2.2000_wp, 2.1600_wp, 2.3630_wp, & ! As-Kr | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Rb-Zr | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Nb-Ru | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Rh-Cd | ||
& 2.2580_wp, 2.5500_wp, 2.4100_wp, 2.4100_wp, & ! In-Te | ||
& 2.3200_wp, 2.5270_wp, cosmostub, cosmostub, & ! I-Ba | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! La-Nd | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Pm-Gd | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Tb-Er | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Tm-Hf | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Ta-Os | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Ir-Hg | ||
& cosmostub, 2.3600_wp, 2.4220_wp, 2.3050_wp, & ! Tl-Po | ||
& 2.3630_wp, 2.5740_wp, cosmostub, cosmostub, & ! At-Ra | ||
& cosmostub, cosmostub, cosmostub, cosmostub, & ! Ac-U | ||
& cosmostub, cosmostub] ! Np-Pu | ||
|
||
|
||
contains | ||
|
||
|
||
!> Get van-der-Waals radius for species with a given symbol | ||
elemental function getVanDerWaalsRadCosmoSymbol(symbol) result(rad) | ||
|
||
!> Element symbol | ||
character(len=*), intent(in) :: symbol | ||
|
||
!> van-der-Waals radius | ||
real(wp) :: rad | ||
|
||
rad = getVanDerWaalsRadCosmo(toNumber(symbol)) | ||
|
||
end function getVanDerWaalsRadCosmoSymbol | ||
|
||
|
||
!> Get van-der-Waals radius for species with a given atomic number | ||
elemental function getVanDerWaalsRadCosmoNumber(number) result(rad) | ||
|
||
!> Atomic number | ||
integer, intent(in) :: number | ||
|
||
!> van-der-Waals radius | ||
real(wp) :: rad | ||
|
||
if (number > 0 .and. number <= size(vanDerWaalsRadCosmo, dim=1)) then | ||
rad = vanDerWaalsRadCosmo(number) | ||
else | ||
rad = -1.0_wp | ||
end if | ||
|
||
end function getVanDerWaalsRadCosmoNumber | ||
|
||
|
||
end module xtb_param_vdwradcosmo |
This file contains 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
This file contains 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
This file contains 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