Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

MoleculeComplex

Guides

  • MoleculeComplex

Symbols

  • Packmol
  • FindCoordinationBonds
  • FindHydrogenBonds
  • MakeMolecule3D
  • MoleculeComplexAngle
  • MoleculeComplexAppend
  • MoleculeComplexDelete
  • MoleculeComplexDistance
  • MoleculeComplexEnergy
  • MoleculeComplexJoin
  • MoleculeComplex
  • MoleculeComplexOptimizeGeometry
  • MoleculeComplexPart
  • MoleculeComplexPlot3D
  • MoleculeComplexPosition
  • MoleculeComplexQ
  • MoleculeComplexToMolecule
  • Packmol
  • RandomRotationTransform
  • $MoleculeComplexVersion
RobertNachbar`MoleculeComplex`
FindHydrogenBonds
​
FindHydrogenBonds
[m]
returns a list pairs of atom indices
{hIndex,aIndex}
where
hIndex
is the hydrogen atom and
aIndex
is the acceptor atom index. If
m
is a molecule, then the indices are integers. If
m
is a molecule complex, then
hIndex
and
aIndex
are each pairs
{molIndex,atmIndex}
.
​
Details and Options

Examples  
(3)
Basic Examples  
(2)
Define the molecule 3-hydroxypropanoic acid:
In[1]:=
hpa=Molecule
Formula:
C
3
H
6
O
3
Atoms: 12 Bonds: 11
;
In[2]:=
MoleculePlot3D[hpa,AtomLabels"AtomIndex"]
Out[2]=
Find the hydrogen bonds in the molecule:
In[3]:=
FindHydrogenBonds
[hpa]
Out[3]=
{{7,6}}
​
Define the dimer of 3-hydroxypropanoic acid:
In[1]:=
hpaDimer=MoleculeComplex
Molecules: 2
Atoms: 24
;
Find the hydrogen bonds in the dimer:
In[2]:=
hBonds=
FindHydrogenBonds
[hpaDimer]
Out[2]=
{{{1,7},{1,6}},{{1,12},{2,5}},{{2,7},{2,6}},{{2,12},{1,5}}}
Display the hydrogen bonds:
In[3]:=
MoleculeComplexPlot3D
[hpaDimer,"IncludeHydrogenBonds"All]
Out[3]=
Compute the hydrogen bond distances:
In[4]:=
MoleculeComplexDistance
[hpaDimer,hBonds]
Out[4]=

2.06966
Å
,
1.62801
Å
,
2.06966
Å
,
1.62801
Å

Scope  
(1)

SeeAlso
FindCoordinationBonds
RelatedGuides
▪
MoleculeComplex
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com