conspire/constitutive/thermal/conduction/fourier/
mod.rs1#[cfg(test)]
2mod test;
3
4use super::{HeatFlux, Scalar, TemperatureGradient, Thermal, ThermalConduction};
5
6#[derive(Debug)]
17pub struct Fourier {
18 pub thermal_conductivity: Scalar,
20}
21
22impl Fourier {
23 fn thermal_conductivity(&self) -> &Scalar {
24 &self.thermal_conductivity
25 }
26}
27
28impl Thermal for Fourier {}
29
30impl ThermalConduction for Fourier {
31 fn heat_flux(&self, temperature_gradient: &TemperatureGradient) -> HeatFlux {
37 temperature_gradient * -self.thermal_conductivity()
38 }
39}