salvus.mesh.algorithms.tensorized_elements
salvus.mesh.algorithms.tensorized_elements salvus mesh algorithms tensorized_elements Tensor finite elements.
Functions
angles()
angles()def angles(npoint: int, ndim: int) -> npt.NDArray: ...Get the indices for computing angles for the equiangular skewness of elements.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
edges()
edges()def edges(npoint: int, ndim: int) -> npt.NDArray: ...Get the edge array.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
facet_gll_indices()
facet_gll_indices()def facet_gll_indices(order: int, ndim: int) -> list[list[float]]: ...Return the indices of all dofs on the facets of the quad / hex.
Parameters
orderint — Shape order of the elementndimint — Dimension
Returns list[list[float]]
facets()
facets()def facets(npoint: int, ndim: int) -> npt.NDArray: ...Get the first-order facets.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
facets_tensor()
facets_tensor()def facets_tensor(npoint: int, ndim: int) -> npt.NDArray: ...Get the tensorized facets.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
first_order_connectivity()
first_order_connectivity()def first_order_connectivity(npoint: int, ndim: int) -> npt.NDArray: ...Get the first-order connectivity.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
get_Dn_hex()
get_Dn_hex()def get_Dn_hex(n: int) -> npt.NDArray: ...Derivative matrices to compute the jacobian from the nodes.
Parameters
nint — index
Returns npt.NDArray
get_Dn_quad()
get_Dn_quad()def get_Dn_quad(n: int) -> npt.NDArray: ...Derivative matrices to compute the jacobian from the nodes.
Parameters
nint — index
Returns npt.NDArray
plot_line()
plot_line()def plot_line(npoint: int, ndim: int) -> npt.NDArray: ...Get lines for plotting.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns npt.NDArray
side_set_mask()
side_set_mask()def side_set_mask(npoint: int, ndim: int) -> list[npt.NDArray]: ...Get masks for the sides of elements.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns list[npt.NDArray]