Ultimate analysis bases

Ultimate analysis provides the percentage composition of a material in terms of carbon (C), hydrogen (H), oxygen (O), nitrogen (N), sulfur (S), ash, and moisture. It can be represented on an as-determined basis (ad), as-received basis (ar), dry basis (dry), and dry-ash free basis (daf).

Source code

class chemics.Ultimate(vals, basis, ADL=22, HO=True)[source]

Ultimate analysis.

Ultimate analysis values expressed as different bases. Such bases are as-determined (ad), as-received (ar), dry (d), and dry ash-free (daf).

Parameters:
  • vals (list) – Ultimate analysis values given as weight percent (wt. %), μg/g (trace elements), or Btu/lb (gross calorific value). Order of values is [C, H, O, N, S, ash, moisture].

  • basis (str) – Basis of given ultimate analysis values. Options are ‘ad’ for as-determined basis or ‘ar’ for as-received basis

  • ADL (float, optional) – Air-dry loss as weight percent

  • HO (bool, optional) – If True then the given H and O values include H and O from moisture. If False then the given H and O values exclude H and O from the moisture content.

Variables:
  • ad_basis (ndarray) – As-determined basis (ad)

  • ar_basis (ndarray) – As-received basis (ar)

  • d_basis (ndarray) – Dry basis (d)

  • daf_basis (ndarray) – Dry ash-free basis (daf)

Raises:

ValueError – If basis is not ad or ar.

Example

>>> ult = cm.Ultimate([60.08, 5.44, 25.01, 0.88, 0.73, 7.86, 9.00], 'ad')
>>> ult.ar_basis
array([46.8624,  6.705 , 39.046 ,  0.6864,  0.5694,  6.1308, 29.02  ])

References

ASTM D3180-15, Standard Practice for Calculating Coal and Coke Analyses from As-Determined to Different Bases, ASTM International, West Conshohocken, PA, 2015.

__str__()[source]

Return string representation.