Skip to content

Main content

Recipe Spike Stock Mass Fraction Tool

Mix one stock addition into a base using mass fractions and total-mass conservation, with no reaction or volume-additivity assumption.

Loading tool…

Description

Return their mass-weighted component fraction.

Mixture proportions compare component amounts on a common basis, such as mass, volume, or count. Combining incompatible bases can give a numeric result without a meaningful mixture interpretation.

Return their mass-weighted component fraction.

When to use this tool

Use Recipe Spike Stock Mass Fraction when you need a supplied mixture or spike component on an explicit common basis.

How to use the tool and how it works

  1. Enter baseMass, baseFraction, stockMass, stockFraction. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read mixtureFraction. Use the output convention below.

Require nonnegative base and stock masses with positive finite sum and both component fractions in [0, 1]. Return their mass-weighted component fraction.1

Input fieldMeaning and unitsAccepted input
baseMassBase MassRequired. Finite number; minimum 0.
baseFractionBase FractionRequired. Finite number; minimum 0; maximum 1.
stockMassStock MassRequired. Finite number; minimum 0.
stockFractionStock FractionRequired. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
mixtureFractionMixture FractionRequired. Finite number.
json
{
  "input": {
    "baseMass": 80,
    "baseFraction": 0.1,
    "stockMass": 20,
    "stockFraction": 0.6
  },
  "output": {
    "mixtureFraction": 0.2
  }
}

Limitations and assumptions

  • Inputs must use a common mass basis; density, reaction, recovery, toxicity, and formulation suitability are not modeled.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Check the full balance, component units, and any density or concentration conversions separately.

References

  1. Calculation and input contract: proportions/recipe-spike-stock-mass-fraction — tool.io

Similar or alternative tools