Skip to main content

add_surface

Function add_surface 

Source
pub fn add_surface<T>(
    backend: ComputeBackend,
    a: &SurfaceField<T>,
    b: &SurfaceField<T>,
) -> SurfaceField<T>
where T: Copy + Send + Sync + Add<Output = T>,
Expand description

Sum of two surface fields — internal faces and every boundary patch.

Name, mesh, and boundary conditions come from a; the name is copied, never composed. Units: both operands are the same physical quantity.

§Panics

Panics if the internal fields or any patch pair differ in length.