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`
MoleculeComplexDelete
​
MoleculeComplexDelete
[mc,id]
deletes the molecule with key
id
in the molecule complex
mc
, use
Key
[n]
.
​
​
MoleculeComplexDelete
[mc,{
id
1
,
id
2
,…}]
deletes several molecules.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Build 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]=
Delete the molecule with the key 2:
In[3]:=
dimer=
MoleculeComplexDelete
[trimer,2]
Out[3]=
MoleculeComplex
Molecules: 2
Atoms: 8

In[4]:=
MoleculeComplexPlot3D
[%]
Out[4]=
The wrapper
Key
can be used:
In[5]:=
MoleculeComplexDelete
[dimer,Key[3]]
Out[5]=
MoleculeComplex
Molecules: 1
Atoms: 3

In[6]:=
MoleculeComplexPlot3D
[%,ImageSizeTiny]
Out[6]=
Delete the molecules with the keys 1 and 3 from the trimer:
In[7]:=
MoleculeComplexDelete
[trimer,{1,3}]
Out[7]=
MoleculeComplex
Molecules: 1
Atoms: 4

In[8]:=
MoleculeComplexPlot3D
[%,ImageSizeTiny]
Out[8]=
SeeAlso
RelatedGuides
▪
MoleculeComplex
""

© 2025 Wolfram. All rights reserved.

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