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: basix._basixcpp.LatticeSimplexMethod) str

Convert a Basix LatticeSimplexMethod enum to a string.

Parameters

simplex_method (basix.LatticeSimplexMethod) – The simplex method

Returns

The simplex method as a string.

Return type

str

basix.lattice.string_to_simplex_method(method: str) basix._basixcpp.LatticeSimplexMethod

Convert a string to a Basix LatticeSimplexMethod enum.

Parameters

method (str) – The simplex method as a string.

Returns

The simplex method

Return type

basix.LatticeSimplexMethod

basix.lattice.string_to_type(lattice: str) basix._basixcpp.LatticeType

Convert a string to a Basix LatticeType enum.

Parameters

lattice (str) – The lattice type as a string.

Returns

The lattice type

Return type

basix.LatticeType

basix.lattice.type_to_string(latticetype: basix._basixcpp.LatticeType) str

Convert a Basix LatticeType enum to a string.

Parameters

latticetype (basix.LatticeType) – The lattice type

Returns

The lattice type as a string.

Return type

str