Molecule

Declaration

The Molecule constuctor does not accept any arguments.

let molecule = new Molecule();

Methods

Properties

Molecule.mass

Type: Number

The mass of the molecule in daltons.

Molecule.atomCounts

Type: Object

The counts of individual atoms by symbol and atomic number.

Example: Butane

Object {
    "atomic": Object {
        "1": 10,
        "6": 4,
    },
    "symbol": Object {
        "C": 4,
        "H": 10,
    },
}

Molecule.moleFraction

Type: Object

The elemental composition with respect to moles by symbol and atomic number.

Example: Butane

Object {
    "atomic": Object {
        "1": 0.7143,
        "6": 0.2857,
    },
    "symbol": Object {
        "C": 0.2857,
        "H": 0.7143,
    },
}

Molecule.massFraction

Type: Object

The elemental composition with respect to mass by symbol and atomic number.

Example: Butane

Object {
    "atomic": Object {
        "1": 0.1734,
        "6": 0.8266,
    },
    "symbol": Object {
        "C": 0.8266,
        "H": 0.1734,
    },
}