Sign in

    zhaoyuanjuns/moonbit_extractor/ternary does not have a README file

    BinodalCurve

    Closed polygonal approximation of a ternary liquid-liquid binodal region.

    Both branches are supplied from low to high solute fraction. The raffinate branch is followed forward and the extract branch backward to form a closed two-phase envelope.

    BinodalCurve::contains

    fn BinodalCurve::contains(self : BinodalCurve, composition :
    TernaryComposition
    , include_boundary? : Bool, tolerance? : Double) -> Bool

    BoundaryIntersection

    pub(all) struct BoundaryIntersection {
    line_fraction : Double
    boundary_fraction : Double
    edge_index : Int
    composition :
    TernaryComposition

    } derive(Eq, ToJson,
    Debug
    )

    BoundaryProjection

    pub(all) struct BoundaryProjection {
    edge_index : Int
    edge_fraction : Double
    composition :
    TernaryComposition

    distance : Double
    } derive(Eq, ToJson,
    Debug
    )

    CartesianPoint

    pub(all) struct CartesianPoint {
    x : Double
    y : Double
    } derive(Eq, ToJson,
    Debug
    )

    LeverResult

    pub(all) struct LeverResult {
    first_fraction : Double
    second_fraction : Double
    first_amount : Double
    second_amount : Double
    projection_residual : Double
    } derive(Eq, ToJson,
    Debug
    )

    TieLineTable

    Tie lines ordered by increasing raffinate-phase solute fraction.

    TieLineTable::at_raffinate_solute

    TieLineTable::nearest

    Select the measured tie line whose segment is closest to an overall point.

    lever_rule

    Apply the lever rule by projecting an overall composition onto the line between two phase endpoints. A small residual confirms collinearity.

    to_cartesian

    Convert normalized ternary fractions to an equilateral triangle with carrier=(0,0), solvent=(1,0), solute=(1/2,sqrt(3)/2).

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io