basix.lattice¶
Functions to manipulate lattice types.
Functions
|
Convert a Basix LatticeSimplexMethod enum to a string. |
|
Convert a string to a Basix LatticeSimplexMethod enum. |
|
Convert a string to a Basix LatticeType enum. |
|
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.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.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