Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__/
__init__.py
.vscode/
9 changes: 8 additions & 1 deletion PoltypeModules/multipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,14 @@ def gen_peditinfile(poltype,mol):
f.write("\n")
f.flush()
os.fsync(f.fileno())
f.write("2\n")
if poltype.polgrpcutbnds:
f.write("3\n")
for b in poltype.polgrpcutbnds.strip(" ,'\"").split(","):
a1, a2 = b.split("/")
f.write(f"{a1} {a2}\n")
f.write("\n")
else:
f.write("2\n")
f.write("N\n")
f.write("Y\n")

Expand Down
3 changes: 3 additions & 0 deletions PoltypeModules/poltype.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class PolarizableTyper():
fragmenterdebugmode:bool=False
jobsatsametime:int=0
usepoleditframes:bool=True
polgrpcutbnds:str=""
databasematchonly:bool=False
setupfragjobsonly:bool=False
allowradicals:bool=False
Expand Down Expand Up @@ -465,6 +466,8 @@ def __post_init__(self):

elif "usepoleditframes" in newline:
self.usepoleditframes=self.SetDefaultBool(line,a,True)
elif "polgrpcutbnds" in newline:
self.polgrpcutbnds=a
elif "generateextendedconf" in newline:
self.generateextendedconf=self.SetDefaultBool(line,a,True)
elif "userconformation" in newline:
Expand Down
1 change: 1 addition & 0 deletions README/README_HELP.MD
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@

``usepoleditframes`` specifies to use POLEDIT frames rather than poltype frame detection. Default is True.

``polgrpcutbnds`` defines a custom list of bonds to cut for polarization group separation. The format is a comma-separated list of atom index pairs (e.g., "1/2,3/4,5/6"). The default is "", which means to put all atoms in one group.

``dmamethod`` specifies which quantum method to use for distributed multipole analysis (DMA). Default is MP2.

Expand Down