3.4.1 • Published 3 years ago

chejs v3.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

ChEjs

Chemical engineering scripts (made by and for chem eng students)

Installation

npm i chejs

Usage

const chejs = require('chejs');

Functions

Conversion

tempConvert(input, inputUnit, outputUnit)

Supported units: Celsius(c), Fahrenheit(f), Kelvin(k)

const temp = chejs.tempConvert('300', 'k, 'c');
unitConvert(input, inputUnit, outputUnit)

Supported units: see units.js

const unit = chejs.unitConvert('760', 'mmhg', 'atm');

Calculations

Molar Calculations
const molarMassFromFormula = chejs.molarMass('CH3CH2OH');
antoineCalculations(molecule, input)

Supported molecules: see antoine_constants.js Input can be vapor pressure or temperature. Feel free to use any of the supported units.

const pvap = chejs.antoineCalculations('Methyl_alcohol', '760mmhg');
heatCapacityFromConstants(compound, state, temperature)

This calculates heat capacity at constant pressure.

Supported compounds, states, temperatures: see heat_capacity_constants.js

const heatCapacity = chejs.heatCapacity('acetone', 'g', '30');

Physical Chemistry

chejs.idealMu(moleFraction, gibbs, R, T)
chejs.idealGibbsEnergy(moleFraction, gibbs, R, T)
chejs.idealEntropy(moleFraction, entropy, R)
chejs.idealVolumn(moleFraction, volume)
chejs.idealEnthalpy(moleFraction, enthalpy)
3.2.8

3 years ago

3.2.7

3 years ago

3.3.1

3 years ago

3.2.2

3 years ago

3.3.0

3 years ago

3.2.1

3 years ago

3.2.6

3 years ago

3.2.5

3 years ago

3.3.3

3 years ago

3.2.4

3 years ago

3.4.1

3 years ago

3.3.2

3 years ago

3.2.3

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.11

4 years ago

1.2.9

4 years ago

1.2.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago