Skip to content

Commit

Permalink
apbs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinAchondo committed Jun 11, 2024
1 parent 9cba3bb commit c0a09d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions xppbe/Model/Solutions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ def apbs_solution(self,X):

if not self.apbs_created:
from .apbs_utils.apbs_interface import APBS

self.domain_properties['concentration'] = (self.kappa/self.ang_to_m)**2*(self.eps0*self.epsilon_2*self.kb*self.T)/(2*self.qe**2*self.Na)/1000

self.apbs_obj = APBS(self.domain_properties,self.equation,self.pqr_path)
self.apbs_created = True

Expand Down
1 change: 1 addition & 0 deletions xppbe/Model/apbs_utils/apbs_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self,domain_properties,equation,pqr_path):
elif equation == 'nonlinear':
equation = 'npbe'
text = text.replace('$PBE_EQUATION',equation)
text = text.replace('$CONCENTRATION',str(float(domain_properties['concentration'])))
text = text.replace('$EPSILON_1',str(float(domain_properties['epsilon_1'])))
text = text.replace('$EPSILON_2',str(float(domain_properties['epsilon_2'])))
text = text.replace('$TEMPERATURE',str(float(domain_properties['T'])))
Expand Down
4 changes: 2 additions & 2 deletions xppbe/Model/apbs_utils/config.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ elec name pbe
mol 1
$PBE_EQUATION
bcfl mdh
ion charge 1 conc 0.125 radius 1.4
ion charge -1 conc 0.125 radius 1.4
ion charge 1 conc $CONCENTRATION radius 0.0
ion charge -1 conc $CONCENTRATION radius 0.0
pdie $EPSILON_1
sdie $EPSILON_2
srfm smol
Expand Down

0 comments on commit c0a09d6

Please sign in to comment.