Skip to main content

Crate sciforge_core

Crate sciforge_core 

Source

Re-exports§

pub use moleculars::solids as materials;

Modules§

acoustics
astronomy
Astronomy domain re-exports.
biology
Biology domain re-exports.
chemistry
Chemistry domain re-exports.
constants
Fundamental physical and mathematical constants (SI). Fundamental physical and mathematical constants (SI).
dynamics
electronics
geology
Geology domain re-exports.
lubrications
maths
Mathematics domain re-exports.
mechanics
meteorology
Meteorology domain re-exports.
moleculars
optics
physics
Physics domain re-exports.
quantum

Structs§

Arena
Contiguous f64 bump allocator.
ArenaMatrix
2D matrix stored contiguously within an arena.
ArenaSlice
Handle to a contiguous slice within the arena.
Campaign
Ordered sequence of experiments executed in series.
CampaignResult
Collected results from a campaign run.
Catalog
Registry of all available scientific functions.
ChartConfig
Configuration for SVG chart rendering.
ComputeRequest
Inbound computation request.
ComputeResponse
Outbound computation response.
Config
Key-value configuration container.
Experiment
A computation request targeting a domain function with parameters.
ExperimentRunner
Dispatches experiments to domain handlers and returns results.
FunctionInfo
Metadata describing a registered scientific function.
HarmonicOscillator
Simple harmonic oscillator model.
IntegratorConfig
Configuration for the ODE integrator.
LotkaVolterra
Lotka-Volterra predator-prey model.
MonotonicityCheck
Parameterized monotonicity check.
MonotonicityResult
Result of a monotonicity check.
NanSafetyCheck
NaN safety check for a function with given parameters.
NanSafetyResult
Result of a NaN safety check.
Pipeline
Sequential data transformation pipeline.
PipelineOutcome
Overall outcome of the validation pipeline.
ProfileEntry
Profiling result for a single experiment.
ProfileReport
Aggregated profiling report for multiple experiments.
ReproducibleContext
Reproducible context: fixed-seed RNG with audit trail.
Rng
Pseudo-random number generator (xoshiro256**) with fixed seed.
ScratchPool
Pool of fixed-size scratch buffers stored in an arena.
Series
Named data series for line charts.
SimpleModel
Generic model built from a closure.
SimulationResult
Output of a simulation run.
ValidationCase
Unit validation case comparing a computed result to a reference value.
ValidationPipeline
Validation pipeline orchestrating cases, monotonicity, and NaN safety.
ValidationReport
Validation report aggregating all results.
ValidationThresholds
Blocking thresholds for the validation pipeline.

Enums§

AngleUnit
Angle measurement units.
DomainType
Supported scientific domains.
EnergyUnit
Energy measurement units.
HubError
Error types produced by hub computations.
IntegrationMethod
Available numerical integration methods.
LengthUnit
Length measurement units.
Level
Log severity level.
MassUnit
Mass measurement units.
ParameterValue
Typed parameter value passed to a computation.
PressureUnit
Pressure measurement units.
RunOutput
Typed output of an experiment execution.
TemperatureUnit
Temperature measurement units.
TimeUnit
Time measurement units.

Traits§

DynamicalSystem
Trait for systems of ordinary differential equations.

Functions§

angle_to_radian
Converts an angle to radians.
approx_equal
Returns true if a and b are equal within tolerance.
bar_chart
Generates an SVG bar chart from labels and values.
convert_length
Converts a length between two arbitrary units.
convert_mass
Converts a mass between two arbitrary units.
convert_time
Converts a time between two arbitrary units.
default_cases
Returns the default validation cases covering all domains.
default_monotonicity_checks
Returns the default monotonicity checks.
default_nan_safety_checks
Returns the default NaN safety checks.
energy_from_si
Converts an energy value from SI (joules) to the target unit.
energy_to_si
Converts an energy value to SI (joules).
filter_positive_stage
Stage that keeps only positive values.
fingerprint
Computes the FNV-1a fingerprint of a f64 slice.
format_scientific
Formats value in scientific notation with precision decimal places.
format_si
Formats value with an SI prefix (k, M, G, … or m, µ, n, …).
heatmap
Generates an SVG heatmap from a 2D matrix.
histogram
Generates an SVG histogram by binning the input data.
integrate
Integrates the system from t0 to tf starting at y0.
kahan_dot
Kahan compensated dot product.
kahan_sum
Kahan compensated summation to reduce floating-point rounding errors.
kelvin_to_temperature
Converts Kelvin to the target temperature unit.
length_from_si
Converts a length value from SI (meters) to the target unit.
length_to_si
Converts a length value to SI (meters).
line_chart
Generates a multi-series SVG line chart.
linspace
Generates n evenly spaced values between start and end inclusive.
logspace
Generates n logarithmically spaced values from $10^{\text{start_exp}}$ to $10^{\text{end_exp}}$.
mass_from_si
Converts a mass value from SI (kilograms) to the target unit.
mass_to_si
Converts a mass value to SI (kilograms).
normalize_stage
Stage that normalizes values to [0, 1].
physics_scalar
pressure_from_si
Converts a pressure value from SI (pascals) to the target unit.
pressure_to_si
Converts a pressure value to SI (pascals).
profile_batch
Profiles a batch of experiments and returns an aggregated report.
profile_experiment
Profiles an experiment over iterations runs and returns statistics.
quick_profile
Shortcut to profile a domain function with scalar parameters.
radian_to_angle
Converts radians to the target angle unit.
relative_error
Computes the relative error between computed and exact.
run_validation
Runs all validation cases and returns a report.
scale_stage
Stage that scales all values by a constant factor.
scatter_plot
Generates an SVG scatter plot.
temperature_to_kelvin
Converts a temperature to Kelvin.
time_from_si
Converts a time value from SI (seconds) to the target unit.
time_to_si
Converts a time value to SI (seconds).

Type Aliases§

HubResult
Convenience alias for hub computation results.