Skip to content

Commit c78635f

Browse files
authored
minor doc update, bump version (#36)
Update docs for more presentability, bump up the version
1 parent a900e9a commit c78635f

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Cclib"
22
uuid = "6bf0c929-756b-4df7-ab0b-d621f7ebeba1"
33
authors = ["cclib development team"]
4-
version = "0.3.0"
4+
version = "0.4.0"
55

66
[deps]
77
AtomsBase = "a963bdd2-2df7-4f54-a1ee-49d51e6be12a"

docs/src/calculation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Cclib also allows to further analyse calculation ouputs.
44

5-
# C squared population analysis (CSPA)
5+
## C squared population analysis (CSPA)
66
**CSPA** can be used to determine and interpret the electron density of a molecule. The contribution of the a-th atomic orbital to the i-th molecular orbital can be written in terms of the molecular orbital coefficients:
77

88
$$\Phi_{ai} = \frac{c^2_{ai}}{\sum_k c^2_{ki}}$$
@@ -17,7 +17,7 @@ julia> aoresults, fragresults, fragcharges = cspa("./Trp_polar.fchk")
1717
* ``fragresults``: a three dimensional array with spin, molecular orbital, and atoms as the axes, so that ``fragresults[1, 24, 5]`` gives the contribution of the 5th fragment orbitals to the 24th beta molecular orbital)
1818
* ``fragcharges``: a vector with the number of (partial) electrons in each fragment, so that ``fragcharges[3]`` gives the number of electrons in the 3rd fragment.
1919

20-
# Mulliken population analysis (MPA)
20+
## Mulliken population analysis (MPA)
2121
MPA can be used to determine and interpret the electron density of a molecule. The contribution of the a-th atomic orbital to the i-th molecular orbital in this method is written in terms of the molecular orbital coefficients, c, and the overlap matrix, S:
2222

2323
$$\Phi_{ai} = \sum_b c_{ai} c_{bi} S_{ab}$$
@@ -31,7 +31,7 @@ julia> aoresults, fragresults, fragcharges = mpa("./Trp_polar.fchk")
3131
* ``fragresults``: a three dimensional array with spin, molecular orbital, and atoms as the axes, so that ``fragresults[1, 24, 5]`` gives the contribution of the 5th fragment orbitals to the 24th beta molecular orbital)
3232
* ``fragcharges``: a vector with the number of (partial) electrons in each fragment, so that ``fragcharges[3]`` gives the number of electrons in the 3rd fragment.
3333

34-
# Löwdin Population Analysis
34+
## Löwdin Population Analysis
3535
```Julia
3636
julia> using Cclib
3737
julia> aoresults, fragresults, fragcharges = lpa("./Trp_polar.fchk")
@@ -41,7 +41,7 @@ julia> aoresults, fragresults, fragcharges = lpa("./Trp_polar.fchk")
4141
* ``fragresults``: a three dimensional array with spin, molecular orbital, and atoms as the axes, so that ``fragresults[1, 24, 5]`` gives the contribution of the 5th fragment orbitals to the 24th beta molecular orbital)
4242
* ``fragcharges``: a vector with the number of (partial) electrons in each fragment, so that ``fragcharges[3]`` gives the number of electrons in the 3rd fragment.
4343

44-
# Bickelhaupt Population Analysis
44+
## Bickelhaupt Population Analysis
4545
The Bickelhaupt class available from cclib.method performs Bickelhaupt population analysis that has been proposed in *Organometallics* 1996, 15, 13, 2923–2931. [doi:10.1021/om950966x](https://pubs.acs.org/doi/abs/10.1021/om950966x)
4646

4747
The contribution of the a-th atomic orbital to the i-th molecular orbital in this method is written in terms of the molecular orbital coefficients, c, and the overlap matrix, S:
@@ -63,21 +63,21 @@ julia> aoresults, fragresults, fragcharges = bpa("./Trp_polar.fchk")
6363
* ``fragresults``: a three dimensional array with spin, molecular orbital, and atoms as the axes, so that ``fragresults[1, 24, 5]`` gives the contribution of the 5th fragment orbitals to the 24th beta molecular orbital)
6464
* ``fragcharges``: a vector with the number of (partial) electrons in each fragment, so that ``fragcharges[3]`` gives the number of electrons in the 3rd fragment.
6565

66-
# Density Matrix calculation
66+
## Density Matrix calculation
6767
Calculates the electron density matrix
6868
```Julia
6969
julia> using Cclib
7070
julia> result = density("./Trp_polar.fchk")
7171
```
7272
Returns an array with three axes. The first axis is for the spin contributions, the second and the third axes for the density matrix, which follows standard definition.
73-
# Mayer’s Bond Orders (MBO)
73+
## Mayer’s Bond Orders (MBO)
7474
Calculates Mayer's bond orders
7575
```Julia
7676
julia> using Cclib
7777
julia> result = mbo("./Trp_polar.fchk")
7878
```
7979
Returns an array with three axes. The first axis is for contributions of each spin to the MBO, while the second and the third correspond to the indices of the atoms.
80-
# Charge Decomposition Analysis
80+
## Charge Decomposition Analysis
8181
The Charge Decomposition Analysis (CDA) as developed by Gernot Frenking et al. is used to study the donor-acceptor interactions of a molecule in terms of two user-specified fragments.
8282
```Julia
8383
julia> using Cclib

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Cclib.jl](https://github.com/cclib/Cclib.jl) is a Julia wrapper around [Cclib](https://cclib.github.io/index.html) - an open source library written in Python for parsing and interpreting the results of computational chemistry packages.
44

5-
# Features
5+
## Features
66

77
- Parsing outputs from 15 different programs: ADF, DALTON, Firefly, GAMESS (US), GAMESS-UK, Gaussian, Jaguar, Molpro, MOLCAS, MOPAC, NWChem, ORCA, Psi4, NBO, QChem and Turbomole.
88

@@ -12,7 +12,7 @@
1212
- By extension, provides interoperability with libraries that use AtomsBase.jl, such as [DFTK.jl](https://github.com/JuliaMolSim/DFTK.jl), [Molly.jl](https://github.com/JuliaMolSim/Molly.jl), and [InteratomicPotentials.jl](https://github.com/cesmix-mit/InteratomicPotentials.jl).
1313
- Integration with [Fermi.jl](https://github.com/FermiQC/Fermi.jl) - quantum chemistry framework written in Julia.
1414

15-
# How to install
15+
## How to install
1616
To install [Cclib.jl](https://github.com/cclib/Cclib.jl), start up and type the following into the REPL.
1717
```julia
1818
Pkg.add("Cclib")

docs/src/interop.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Interoperability With Other Tools
22

3-
# AtomsBase.jl
3+
## AtomsBase.jl
44

55
Cclib.jl provides interoperability with [AtomsBase.jl](https://github.com/JuliaMolSim/AtomsBase.jl) by allowing to create AtomsBase systems.
66

77
The documentaiton below provides some essential functionality, such as creating and editing AtomsBase.jl systems.
88

99
For a detailed overview, or if you want to know how AtomsBase.jl operates behind the scenes, refer to its official documentation.
1010

11-
## Creating AtomsBase Systems
11+
### Creating AtomsBase Systems
1212
We can load information contained in a Cclib.jl-supported file into a system by using the following functions:
1313
- `make_flexible_system` - for creating an AtomsBase `FlexibleSystem`
1414

@@ -64,7 +64,7 @@ julia> atoms[1]
6464
Atom(O, atomic_number = 8, atomic_mass = 15.999 u):
6565
position : [0,0,-0.066678532]u"Å"
6666
```
67-
## Accessing System Properties
67+
### Accessing System Properties
6868
In case we need to look at what our system contains, we can use regular `keys` to see available system-level properties and `atomkeys` to see available atom-level properties
6969

7070
```Julia
@@ -90,7 +90,7 @@ julia> bounding_box(system)
9090
:H
9191
```
9292
93-
## Updating and/or adding system properties
93+
### Updating and/or adding system properties
9494
We can also update and/or add system properties by using `update_system` function that accepts keywords arguments. Below is an example of adding data that was parsed using `ccread` to a system.
9595
```Julia
9696
julia> using Cclib
@@ -101,7 +101,7 @@ julia> system[:nbasis]
101101
7
102102
```
103103
104-
# AtomsBase.jl-supported libraries
104+
### AtomsBase.jl-supported libraries
105105
106106
We can use data loaded with Cclib.jl to perform calculations using other libraries that use AtomsBase.jl, such as [InteratomicPotentials.jl](https://github.com/cesmix-mit/InteratomicPotentials.jl) or [DFTK.jl](https://github.com/JuliaMolSim/DFTK.jl).
107107
@@ -155,7 +155,7 @@ n Energy log10(ΔE) log10(Δρ) Diag Δtime
155155
For a full list of tools that support AtomsBase.jl, refer to its [official
156156
documentation](https://github.com/JuliaMolSim/AtomsBase.jl).
157157
158-
# Fermi.jl
158+
## Fermi.jl
159159
160160
We can use information loaded using Cclib and use it for [Fermi.jl](https://github.com/FermiQC/Fermi.jl) calculations, which accept atom numbers and XYZ coordinates as input. The latter is accessible using Cclib's `getXYZ` function.
161161

docs/src/io.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Reading and writing files
22

3-
# Supported formats
3+
## Supported formats
44
Properties that can be parsed and supported file formats can be found [here](https://cclib.github.io/data.html#details-of-current-implementation").
55

6-
# How to read files
6+
## How to read files
77
```Julia
88
# Input files can be found in the in the repo under "test" folder
99
julia> using Cclib
@@ -22,5 +22,4 @@ Accessing the data is identical to how one would access data in a dictionary:
2222
```Julia
2323
julia> mol["natom"]
2424
12
25-
```
26-
Note that files may contain more than one geometry, in which case the index of the geometry can be specified by passing `geomIdx` argument. Be default, `writeXYZ` will use the last read geometry.
25+
```

0 commit comments

Comments
 (0)