salvus.mesh.algorithms.tensorized_elements
Tensor finite elements.
Functions
angles()
angles()def angles(npoint: int, ndim: int) -> numpy.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 numpy.ndarray
edges()
edges()def edges(npoint: int, ndim: int) -> numpy.ndarray: ...Get the edge array.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns numpy.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) -> numpy.ndarray: ...Get the first-order facets.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns numpy.ndarray
facets_tensor()
facets_tensor()def facets_tensor(npoint: int, ndim: int) -> numpy.ndarray: ...Get the tensorized facets.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns numpy.ndarray
first_order_connectivity()
first_order_connectivity()def first_order_connectivity(npoint: int, ndim: int) -> numpy.ndarray: ...Get the first-order connectivity.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns numpy.ndarray
get_Dn_hex()
get_Dn_hex()def get_Dn_hex(n: int) -> numpy.ndarray: ...Derivative matrices to compute the jacobian from the nodes.
Parameters
nint — index
Returns numpy.ndarray
get_Dn_quad()
get_Dn_quad()def get_Dn_quad(n: int) -> numpy.ndarray: ...Derivative matrices to compute the jacobian from the nodes
Parameters
nint — index
Returns numpy.ndarray
plot_line()
plot_line()def plot_line(npoint: int, ndim: int) -> numpy.ndarray: ...Get lines for plotting.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns numpy.ndarray
side_set_mask()
side_set_mask()def side_set_mask(
npoint: int, ndim: int
) -> List[numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]]: ...Get masks for the sides of elements.
Parameters
npointint — The shape order of the element.ndimint — The dimensionality.
Returns List[numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]]