Property Estimator

NameStoichiometric concentration from chemical formula
PropertyStoichiometric Concentration
TypeFunction
Function
$tokens = [
  'c' => 'C',
  'h' => 'H',
  'm' => 'O',
  'x' => 'Cl|Br|F'
];
$vars = [];
foreach ($tokens as $key => $token) {
  if (!preg_match('/(' . $token . ')([' . '^A-Z]*)([' . 'A-Z]|$)/', [!substance_formula], $matches)) continue;
  $vars[$key] = !$matches[2] ? 1 : (is_numeric($matches[2]) ? intval($matches[2]) : 0);
}
$val = 100 / (1 + 4.773 * ($vars['c'] + ($vars['h'] - $vars['x'] - 2 * $vars['m']) / 4));
return $val > 0 ? $val : NULL;
Unit%v
Validity ConditionsSubstance Type: Flammable
Precedence1
DisabledNo
ReferencesJoseph M. Kuchta, "Investigation of Fire and Explosion Accidents in the Chemical, Mining, and Fuel-Related Industries - A Manual", 1985
AccessPublic
Created: Serkan GIRGIN, 2017/04/10 14:17:23 – Updated: Serkan GIRGIN, 2017/04/26 15:00:15

Risk Assessment

Natural Hazards

Industrial Plants

Scientific

Users