heat_diffusion_kernel

Function heat_diffusion_kernel 

Source
pub fn heat_diffusion_kernel(
    temp_manifold: &Manifold<f64>,
    diffusivity: f64,
) -> Result<CausalTensor<f64>, PhysicsError>
Expand description

Calculates the Heat Equation step: $\frac{\partial u}{\partial t} = \alpha \Delta u$.

Computes the change in temperature field $u$ due to diffusion. Note: The Laplacian returns positive $\Delta u$. Conservation requires $\frac{du}{dt} = - \alpha \Delta u$.

§Arguments

  • temp_manifold - Manifold containing the temperature 0-form field $u$ (on vertices).
  • diffusivity - Thermal diffusivity $\alpha$.

§Returns

  • Result<CausalTensor<f64>, PhysicsError> - Rate of change tensor $\frac{du}{dt}$.