Skip to main content

Crate khanij

Crate khanij 

Source
Expand description

§Khanij

Khanij (खनिज — Sanskrit for “mineral, born from mining”) — geology and mineralogy engine for the AGNOS ecosystem.

Provides mineral properties, crystal systems, Mohs hardness, rock classification, soil composition, weathering/erosion, and ore deposit modeling.

§Optional features

  • chemistry — mineral composition, dissolution kinetics, and lattice energy via kimiya.
  • thermodynamics — geothermal gradients, heat flow, and metamorphic phase equilibria via ushma.
  • fluids — groundwater flow, sediment transport, and surface hydrology via pravash.
  • weather — climate-driven weathering and erosion from atmospheric state via badal.

Re-exports§

pub use crystal::CrystalSystem;
pub use crystallography::MillerIndex;
pub use crystallography::UnitCell;
pub use crystallography::bragg_angle;
pub use crystallography::bragg_wavelength;
pub use crystallography::d_spacing;
pub use dating::IsochronPoint;
pub use dating::IsotopeSystem;
pub use dating::age_from_ratio;
pub use dating::c14_age;
pub use dating::c14_fraction_remaining;
pub use dating::closure_temperature;
pub use dating::decay_constant;
pub use dating::half_life;
pub use dating::isochron_age;
pub use dating::parent_remaining;
pub use error::KhanijError;
pub use error::Result;
pub use formula::Formula;
pub use geochemistry::AsiClassification;
pub use geochemistry::MajorOxides;
pub use geochemistry::TasClassification;
pub use geochemistry::alumina_saturation_index;
pub use geochemistry::classify_asi;
pub use geochemistry::classify_tas;
pub use geochemistry::fractional_crystallization;
pub use geochemistry::mg_number;
pub use glaciology::GlacierType;
pub use glaciology::basal_sliding_velocity;
pub use glaciology::equilibrium_line_altitude;
pub use glaciology::glen_flow_law;
pub use glaciology::ice_velocity_depth_integrated;
pub use glaciology::isostatic_depression;
pub use glaciology::isostatic_rebound_time;
pub use glaciology::mass_balance;
pub use grid::GeologicGrid;
pub use grid::GeologicLayer;
pub use grid::GeologicUnit;
pub use grid::StratigraphicColumn;
pub use grid::StrikeDip;
pub use hydrothermal::AlterationZone;
pub use hydrothermal::HydrothermalConditions;
pub use hydrothermal::classify_alteration;
pub use hydrothermal::estimated_ore_grade;
pub use hydrothermal::metal_solubility;
pub use hydrothermal::precipitation_rate;
pub use mineral::Luster;
pub use mineral::Mineral;
pub use mineral::MohsHardness;
pub use ore::DepositType;
pub use ore::OreDeposit;
pub use ore::ResourceCategory;
pub use ore::TonnageGradePoint;
pub use ore::cutoff_grade;
pub use ore::is_economically_viable;
pub use ore::net_present_value;
pub use ore::tonnage_grade_curve;
pub use rock::GeologicalProcess;
pub use rock::Rock;
pub use rock::RockType;
pub use rock::bulk_density;
pub use rock::bulk_density_from_minerals;
pub use rock::porosity_from_density;
pub use rock::rock_cycle_next;
pub use sediment::BudgetResult;
pub use sediment::GRAIN_CLASSES;
pub use sediment::GRAIN_DIAMETERS;
pub use sediment::SedimentSink;
pub use sediment::SedimentSource;
pub use sediment::compute_budget;
pub use sediment::denudation_rate;
pub use sediment::sediment_delivery_ratio;
pub use sediment::sediment_production;
pub use sediment::transport_capacity;
pub use soil::HorizonType;
pub use soil::SoilComposition;
pub use soil::SoilFertility;
pub use soil::SoilHorizon;
pub use soil::SoilOrder;
pub use soil::SoilPhClass;
pub use soil::SoilProfile;
pub use soil::SoilTexture;
pub use soil::available_water_capacity;
pub use soil::cation_exchange_capacity;
pub use soil::classify_ph;
pub use soil::hydraulic_conductivity_mm_hr;
pub use stratigraphy::DepositionalEnvironment;
pub use stratigraphy::ParasequenceBoundary;
pub use stratigraphy::SeaLevelCycle;
pub use stratigraphy::SystemsTract;
pub use stratigraphy::WalthersLaw;
pub use stratigraphy::accommodation_space;
pub use stratigraphy::sediment_supply_ratio;
pub use tectonics::BoundaryType;
pub use tectonics::EulerPole;
pub use tectonics::RidgeType;
pub use tectonics::SubductionZone;
pub use tectonics::classify_ridge;
pub use tectonics::full_spreading_rate;
pub use tectonics::lithosphere_thickness;
pub use tectonics::ocean_depth_m;
pub use tectonics::ocean_floor_age;
pub use texture::GrainSize;
pub use texture::IgneousTexture;
pub use texture::MetamorphicFabric;
pub use texture::Roundness;
pub use texture::Sorting;
pub use texture::classify_grain_size;
pub use texture::classify_igneous_texture;
pub use texture::classify_sorting;
pub use texture::mm_to_phi;
pub use texture::phi_to_mm;
pub use timescale::Eon;
pub use timescale::Epoch;
pub use timescale::Era;
pub use timescale::Period;
pub use timescale::StratigraphicPosition;
pub use timescale::TimeInterval;
pub use timescale::classify_age;
pub use timescale::eon_at_age;
pub use timescale::epoch_at_age;
pub use timescale::era_at_age;
pub use timescale::period_at_age;
pub use volcanic::MagmaComposition;
pub use volcanic::MagmaType;
pub use volcanic::Vei;
pub use volcanic::classify_magma;
pub use volcanic::classify_vei;
pub use volcanic::eruption_column_height;
pub use volcanic::lava_flow_velocity;
pub use volcanic::magma_viscosity;
pub use volcanic::pyroclastic_flow_runout;
pub use weathering::chemical_weathering_rate;
pub use weathering::erosion_rate;
pub use weathering::physical_weathering_rate;

Modules§

bridge
Cross-crate bridges — primitive-value conversions from other AGNOS science crates. Cross-crate bridges — convert primitive values from other AGNOS science crates into khanij geology parameters and vice versa.
crystal
crystallography
dating
Radiometric dating — age calculations from radioactive decay of isotope systems (U-Pb, K-Ar, Rb-Sr, C-14).
error
formula
Mineral formula parser — converts chemical formula strings like "CaCO₃", "Mg₃Si₄O₁₀(OH)₂", or "CaSO4·2H2O" into element-count pairs.
geochemistry
Geochemistry module — major oxide analysis, TAS classification, magmatic differentiation indices, and Rayleigh fractionation.
glaciology
Glacier and ice sheet dynamics — Glen’s flow law, basal sliding, mass balance, equilibrium line altitude, isostatic adjustment, and depth-integrated ice velocity.
grid
hydrothermal
Hydrothermal ore formation model — combines geothermal cooling, fluid flow, and mineral stability to model where ore deposits form around intrusions.
integration
Integration APIs for downstream consumers (soorat rendering). Integration APIs for downstream consumers.
mineral
ore
rock
sediment
Sediment budget model — source-to-sink mass balance combining weathering production, transport capacity, and deposition.
soil
stratigraphy
Sequence stratigraphy — systems tracts, sea-level cycles, accommodation space, and facies relationships governed by Walther’s Law.
tectonics
Plate tectonics — Euler poles, plate velocities, boundary types, and subduction geometry.
texture
Petrographic texture classification — grain size scales, sorting, roundness, and fabric for describing rock textures.
timescale
Geologic timescale — eons, eras, periods, and epochs with absolute age ranges in millions of years ago (Ma).
volcanic
Volcanic eruption modeling — explosivity classification, magma properties, eruption column dynamics, pyroclastic flow runout, and lava flow velocity.
weathering