basix.lattice

Functions to manipulate lattice types.

Functions

create_lattice(celltype, n, ltype, exterior)

Create a lattice of points on a reference cell.

string_to_simplex_method(method)

Convert a string to a Basix LatticeSimplexMethod enum.

string_to_type(lattice)

Convert a string to a Basix LatticeType enum.

Classes

LatticeSimplexMethod(value)

Lattice simplex method.

LatticeType(value)

Lattice type.

basix.lattice.string_to_simplex_method(method: str) LatticeSimplexMethod

Convert a string to a Basix LatticeSimplexMethod enum.

Parameters:

method – Simplex method as a string.

Returns:

Simplex method.

basix.lattice.string_to_type(lattice: str) LatticeType

Convert a string to a Basix LatticeType enum.

Parameters:

lattice – Lattice type as a string.

Returns:

Lattice type.