DensityPlot3D - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


QuantumChemistry

  

DensityPlot3D

  

create 3D plot of the one-electron density of the entire molecule or a designated molecular orbital

  

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

DensityPlot3D(molecule, data, options)

Parameters

molecule

-

list of lists; each list has 4 elements, the string of an atom's symbol and atom's x, y, and z coordinates

data

-

table returned by one of the electronic structure methods including 'HartreeFock', 'DensityFunctional', 'RDMFunctional', 'ActiveSpaceCI', 'ActiveSpaceSCF', 'CoupledCluster', 'FullCI', 'MP2', 'Variational2RDM', 'Parametric2RDM', and 'ContractedSchrodinger'

options

-

(optional) equation(s) of the form options = value  where options is one of orbitalindex, densitycutoff, phase, vanderwaalsradii, gridspacing, maximumpoints, bonds, colors (or an option of the molecule such as basis or charge)

Description

• 

The DensityPlot3D procedure generates a 3D plot of a molecule's electron density.

• 

The procedure can generate the electron density of the entire molecule or a designated molecular orbital.

• 

Two arguments, molecule and data, are required where molecule defines the atom or molecule while data is the Maple table returned by one of the electronic structure methods including 'HartreeFock', 'DensityFunctional', 'ActiveSpaceCI', 'ActiveSpaceSCF', 'CoupledCluster', 'FullCI', 'MP2', 'Parametric2RDM', 'ContractedSchrodinger', and 'Variational2RDM'.

• 

The orbitalindex integer (optional) -- denotes the molecular orbital to plot; default is 0 which plots the molecule's density.

• 

The densitycutoff float (optional)  -- sets the cutoff for the electron density contour.  Typically, less than 0.01; default is 0.005.

• 

The phase boolean (optional)  -- displays the phase of the molecular orbital when set to true; default is true.

• 

The vanderwaalsradii float (optional)  -- is the weight (>1) for Van der Waals radii for defining the density grid; default is 1.8.

• 

The gridspacing float (optional)  -- is the spacing between grid points; default is 0.1.

• 

The maximumpoints integer (optional) -- is the maximum total number of grid points in the density plot; default is 100000.

• 

The bonds set of sets (optional) is a set of sets where each set contains two integers denoting the atoms to be connected by a chemical bond.  The integers correspond to the positions of the atoms in molecule.  If the optional keyword bonds is not set, the bonds to be shown are determined automatically.

• 

The colors list of strings (optional) is a list of two strings containing the colors of the positive and negative lobes of the molecular orbitals. Any color strings from Maple's ColorTools package is supported.  If the optional keyword colors is not set, the plot uses the default colors, "green" and "purple".

• 

The options also include the options available for PlotMolecule.

• 

The keyword viewpoint generates a molecular fly-through animation.  It can be set to one of the following strings "flythrough", "flythrough2", "flythrough3", "flythrough4", "circleleft", and "circleright".  It can also be set to a custom fly-through animation as described on the help page for viewpoint.

Examples

withQuantumChemistry:

Density plot of the hydrogen fluoride HF molecule

molecule  H,0,0,0,F,0,0,0.95;

moleculeH,0,0,0,F,0,0,0.95000000

(1)

output_hf  HartreeFockmolecule, basis=dz;

DensityPlot3Dmolecule,output_hf, basis=dz, orbitalindex=3, densitycutoff=0.0005;

or using the colors option to change the colors

DensityPlot3Dmolecule,output_hf, basis=dz, orbitalindex=3, densitycutoff=0.0005,colors=Nautical Red,Nautical Light Blue;

Consider the 1,3-dichlorobenzene molecule

mol MolecularGeometry1,3-dichlorobenzene;

molCl,−2.69870000,−1.16790000,−0.00070000,Cl,2.69910000,−1.16770000,−0.00030000,C,0,−1.00570000,0.00050000,C,−1.20800000,−0.30820000,0.00050000,C,1.20800000,−0.30820000,0.00010000,C,−1.20800000,1.08670000,0.00020000,C,1.20780000,1.08680000,−0.00030000,C,−0.00010000,1.78420000,−0.00020000,H,0,−2.09370000,0.00050000,H,−2.14160000,1.64350000,−0.00010000,H,2.14140000,1.64360000,−0.00060000,H,−0.00020000,2.87030000,−0.00050000

(2)

Generate a fly-through animation of the molecule and its density

data  Variational2RDMmol;

DensityPlot3Dmol, data,viewpoint=flythrough3,maximumpoints=400000,  gridspacing=0.001;

 

See Also

QuantumChemistry
PlotMolecule