Saxonberg Server API
    Preparing search index...

    Interface MaterialComposition

    Recursive composition expansion. direct is the material's own composition entries (one level). flat is the recursive walk down to leaf elements / unmodeled bottoms, expressed as element-symbol → cumulative weight fraction.

    A mixture of mixtures resolves to atomic-symbol fractions — useful for "does this contain iron?" queries that don't care about the intermediate alloy.

    interface MaterialComposition {
        direct: CompositionEntry[];
        flat: Record<string, number>;
        material: default;
    }
    Index

    Properties

    Properties

    Direct constituents (one level).

    flat: Record<string, number>

    Element symbol → cumulative weight fraction across the recursive expansion. Only present for materials that bottom out in elements with a chemistry.symbol. Mixtures whose components lack chemistry data contribute their direct entries to direct but not to flat.

    material: default

    The material whose composition is being expanded.