Version:

salvus.mesh.algorithms.tensorized_elements

salvus.mesh.algorithms.tensorized_elements salvus mesh algorithms tensorized_elements
Tensor finite elements.

Functions

angles()

Get the indices for computing angles for the equiangular skewness of elements.
SIGNATURE
def angles(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

edges()

Get the edge array.
SIGNATURE
def edges(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

facet_gll_indices()

Return the indices of all dofs on the facets of the quad / hex.
SIGNATURE
def facet_gll_indices(order: int, ndim: int) -> list[list[float]]: ...
ARGUMENTS
Required
order
Type:int
Description:
Shape order of the element
Required
ndim
Type:int
Description:
Dimension
RETURNS
Return type: list[list[float]]

facets()

Get the first-order facets.
SIGNATURE
def facets(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

facets_tensor()

Get the tensorized facets.
SIGNATURE
def facets_tensor(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

first_order_connectivity()

Get the first-order connectivity.
SIGNATURE
def first_order_connectivity(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

get_Dn_hex()

Derivative matrices to compute the jacobian from the nodes.
SIGNATURE
def get_Dn_hex(n: int) -> npt.NDArray: ...
ARGUMENTS
Required
n
Type:int
Description:
index
RETURNS
Return type: npt.NDArray

get_Dn_quad()

Derivative matrices to compute the jacobian from the nodes.
SIGNATURE
def get_Dn_quad(n: int) -> npt.NDArray: ...
ARGUMENTS
Required
n
Type:int
Description:
index
RETURNS
Return type: npt.NDArray

plot_line()

Get lines for plotting.
SIGNATURE
def plot_line(npoint: int, ndim: int) -> npt.NDArray: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: npt.NDArray

side_set_mask()

Get masks for the sides of elements.
SIGNATURE
def side_set_mask(npoint: int, ndim: int) -> list[npt.NDArray]: ...
ARGUMENTS
Required
npoint
Type:int
Description:
The shape order of the element.
Required
ndim
Type:int
Description:
The dimensionality.
RETURNS
Return type: list[npt.NDArray]
PAGE CONTENTS