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`
MoleculeComplexPosition
​
MoleculeComplexPosition
[mc,patt]
gives a list of positions in the molecule complex
mc
of molecules that match
patt
​
Examples  
(1)
Basic Examples  
(1)
Define a trimer of water, ammonia, and methane:
In[1]:=
trimer=
MoleculeComplex
Molecule
water
CHEMICAL
,MoleculeModifyMolecule
ammonia
CHEMICAL
,{"TransformAtomCoordinates",TranslationTransform[{3,0,0}]},MoleculeModifyMolecule
methane
CHEMICAL
,{"TransformAtomCoordinates",TranslationTransform[{6,0,0}]}
Out[1]=
MoleculeComplex
Molecules: 3
Atoms: 12

In[2]:=
MoleculeComplexPlot3D
[%]
Out[2]=
Find the position of molecules that contain a nitrogen atom:
In[3]:=
MoleculeComplexPosition
[trimer,_?(MoleculeContainsQ[Atom["N"]])]
Out[3]=
{Key[2]}
Find the position of molecules that are more than 4Å from the methane molecule:
In[4]:=
With{methaneCOM=trimer[{"CentersOfMass",3}]},​​
MoleculeComplexPosition
[trimer,mol_/;EuclideanDistance[mol["CenterOfMass"],methaneCOM]>Quantity[4,"Angstroms"]]​​
Out[4]=
{Key[1]}
SeeAlso
RelatedGuides
▪
MoleculeComplex
""

© 2025 Wolfram. All rights reserved.

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