Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
06d30673
Commit
06d30673
authored
Sep 20, 2019
by
cmaffeo2
Browse files
More restrictive condition for creating crossover dihedral potentials
parent
3404c828
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/segmentmodel.py
View file @
06d30673
...
...
@@ -2698,11 +2698,12 @@ class SegmentModel(ArbdModel):
# if n2.idx == 0:
# print( n1.idx,n2.idx,n3.idx,n4.idx,k,t0,sep )
# if sep == 0 and n1 is not n4:
if
sep
==
0
:
# pot = self.get_angle_potential(k,t0)
# self.add_angle( n1,n2,n4, pot )
pass
elif
len
(
set
((
n1
,
n2
,
n3
,
n4
)))
!=
4
:
print
(
"WARNING: skipping crossover dihedral angle potential because beads are too close"
)
else
:
pot
=
self
.
get_dihedral_potential
(
k
,
t0
)
self
.
add_dihedral
(
n1
,
n2
,
n3
,
n4
,
pot
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment