Files
rustytorch/demos/bioheat-shared/src/lib.rs
T
2026-03-04 00:08:42 +00:00

31 lines
1.0 KiB
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! Shared types for 3D Thermal Ablation Bioheat Demo
//!
//! This crate provides common data structures used across the bioheat solver,
//! server, and frontend components for thermal ablation simulation.
//!
//! # Pennes Bioheat Equation
//!
//! The demo solves the Pennes bioheat equation:
//! ```text
//! ρc(∂T/∂t) = k∇²T + ωb·ρb·cb·(Ta - T) + Qm + Qs
//! ```
//!
//! Where:
//! - `ρ, c` = tissue density and specific heat
//! - `k` = thermal conductivity
//! - `ωb` = blood perfusion rate (cooling effect)
//! - `ρb, cb` = blood density and specific heat
//! - `Ta` = arterial blood temperature
//! - `Qm` = metabolic heat generation
//! - `Qs` = external heat source (ablation probe)
pub mod fields;
pub mod geometry;
pub mod ipc;
pub mod physics;
pub use fields::{AblationZone, SliceAxis, SliceData, TemperatureField};
pub use geometry::{BoundingBox3D, Point3D, ProbeGeometry};
pub use ipc::{BioheatLossRecord, BioheatSnapshot, BioheatStatus, SimulationParams};
pub use physics::{BioheatParams, BloodProperties, TissueProperties, TissueType};