cfsem 8.0.0

Quasi-steady electromagnetics including filamentized approximations, Biot-Savart, and Grad-Shafranov.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::mesh::QuadMeshView2d;

pub(crate) static SINGLE_QUAD4_NODES: [[f64; 2]; 4] =
    [[1.0, 0.0], [2.0, 0.0], [2.0, 1.0], [1.0, 1.0]];
pub(crate) static SINGLE_QUAD4_ELEMENTS: [[usize; 4]; 1] = [[0usize, 1, 2, 3]];

pub(crate) fn single_element_quad4_mesh() -> QuadMeshView2d<'static, f64, 4> {
    QuadMeshView2d {
        nodes_rz: &SINGLE_QUAD4_NODES,
        elements: &SINGLE_QUAD4_ELEMENTS,
    }
}