Mondaic
This API reference is not for the latest stable Salvus version.

salvus.mesh.algorithms.tensorized_elements

Tensor finite elements.

Functions

angles()

def angles(npoint: int, ndim: int) -> numpy.ndarray: ...

Get the indices for computing angles for the equiangular skewness of elements.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

edges()

def edges(npoint: int, ndim: int) -> numpy.ndarray: ...

Get the edge array.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

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
  • order int — Shape order of the element
  • ndim int — Dimension
Returns List[List[float]]

facets()

def facets(npoint: int, ndim: int) -> numpy.ndarray: ...

Get the first-order facets.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

facets_tensor()

def facets_tensor(npoint: int, ndim: int) -> numpy.ndarray: ...

Get the tensorized facets.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

first_order_connectivity()

def first_order_connectivity(npoint: int, ndim: int) -> numpy.ndarray: ...

Get the first-order connectivity.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

get_Dn_hex()

def get_Dn_hex(n: int) -> numpy.ndarray: ...

Derivative matrices to compute the jacobian from the nodes.

Parameters
  • n int — index
Returns numpy.ndarray

get_Dn_quad()

def get_Dn_quad(n: int) -> numpy.ndarray: ...

Derivative matrices to compute the jacobian from the nodes

Parameters
  • n int — index
Returns numpy.ndarray

plot_line()

def plot_line(npoint: int, ndim: int) -> numpy.ndarray: ...

Get lines for plotting.

Parameters
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns numpy.ndarray

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
  • npoint int — The shape order of the element.
  • ndim int — The dimensionality.
Returns List[numpy.ndarray[Any, numpy.dtype[+_ScalarType_co]]]