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: LatticeSimplexMethod) str ¶
Convert a Basix LatticeSimplexMethod enum to a string.
- Parameters:
simplex_method – 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 – 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 – Lattice type
- Returns:
The lattice type as a string.