1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! Climate model component implementations
//!
//! This module contains the core climate model components that can be composed
//! to build reduced-complexity climate models. Each component implements the
//! [`Component`](rscm_core::component::Component) trait and can be orchestrated
//! by the [`Model`](rscm_core::model::Model) to form complete climate simulations.
//!
//! # Component Categories
//!
//! ## Carbon Cycle Components
//!
//! Components that model the exchange of carbon between atmosphere, ocean, and land:
//!
//! - [`CarbonCycle`] - One-box atmospheric carbon model with temperature-dependent uptake
//! - [`ocean_carbon_cycle`] - Ocean carbon cycle submodule with surface partial pressure calculations
//!
//! ## Radiative Forcing Components
//!
//! Components that calculate radiative forcing from greenhouse gas concentrations:
//!
//! - [`CO2ERF`] - CO2 effective radiative forcing using the logarithmic relationship
//!
//! ## Ocean Heat Uptake Components
//!
//! Components that model heat uptake and distribution in the ocean:
//!
//! - [`FourBoxOceanHeatUptake`] - Regional heat uptake using a four-box (hemispheric ocean/land) grid
//!
//! # Using Components
//!
//! Components are instantiated with their parameters and added to a model:
//!
//! ```rust,ignore
//! use rscm_components::{CO2ERF, CO2ERFParameters};
//!
//! let component = CO2ERF::from_parameters(CO2ERFParameters {
//! erf_2xco2: 3.7, // W/m^2
//! conc_pi: 278.0, // ppm
//! });
//!
//! // Add to model via ModelBuilder
//! let model = ModelBuilder::new()
//! .with_component(Box::new(component))
//! .build();
//! ```
//!
//! Each component declares its input requirements and output variables through the
//! `definitions()` method. The model orchestrator uses this information to resolve
//! dependencies and execute components in topological order.
pub use ;
pub use ;
pub use ;