SimonEnsemble / PorousMaterials.jl

Julia package towards classical molecular modeling of nanoporous materials
GNU General Public License v3.0
51 stars 11 forks source link

Return number of pockets blocked, make inaccessible pocket blocking optional #85

Closed SimonEnsemble closed 6 years ago

SimonEnsemble commented 6 years ago

in compute_accessibility_grid():

@Surluson you can now speed up your Henry coef calcs to avoid going through the computations that will end up with a huge energy via not blocking pockets but still using an accessibility grid in henry insertions:

n_pts = required_pts(framework.box, 0.1) # make sure grid resolution is fine, 0.1 A spacing
energy_tol = 15.0 * temperature # block only at really high energy

accessibility_grid, nb_segments_blocked, porosity = compute_accessibility_grid(
      framework, probe_molecule, forcefield, n_pts=n_pts, energy_tol=energy_tol, verbose=false,        
      block_inaccessible_pockets=false, energy_units=:K)

henry_coefficient(..., accessibility_grid=accessibility_grid)