basix.lattice

Functions to manipulate lattice types.

Functions

simplex_method_to_string(simplex_method)

Convert a Basix LatticeSimplexMethod enum to a string.

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.

type_to_string(latticetype)

Convert a Basix LatticeType enum to a string.

basix.lattice.simplex_method_to_string(simplex_method: LatticeSimplexMethod) str

Convert a Basix LatticeSimplexMethod enum to a string.

Parameters

simplex_method – The simplex method

Returns

The simplex method as a string.

basix.lattice.string_to_simplex_method(method: str) LatticeSimplexMethod

Convert a string to a Basix LatticeSimplexMethod enum.

Parameters

method – The simplex method as a string.

Returns

The simplex method

basix.lattice.string_to_type(lattice: str) LatticeType

Convert a string to a Basix LatticeType enum.

Parameters

lattice – The lattice type as a string.

Returns

The lattice type

basix.lattice.type_to_string(latticetype: LatticeType) str

Convert a Basix LatticeType enum to a string.

Parameters

latticetype – The lattice type

Returns

The lattice type as a string.