hexahedral mesh
Hello,
I wonder if I can create hexahedral meshes in Dolfin?
The hexahedron is listed as one of the reference cells in the Dolfin user guide.
But the following python snippet fails with 'RuntimeError: *** Error: Unknown cell type "hexahedron"':
from dolfin import *
mesh=Mesh();
e=MeshEditor()
e.open(
Diving into dolfin-
void MeshEditor:
{
if (type == "point")
open(mesh, CellType::point, tdim, gdim);
else if (type == "interval")
open(mesh, CellType::interval, tdim, gdim);
else if (type == "triangle")
open(mesh, CellType::triangle, tdim, gdim);
else if (type == "tetrahedron")
open(mesh, CellType:
else
error("Unknown cell type \"%s\".", type.c_str());
}
Apparently hexahedrons and quadrilaterals are not supported.
Can I somehow create a hexahedral mesh?
If not, what is the purpose of the hexahedron cell type?
Thanks
Lars
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Lars
- Solved:
- Last query:
- Last reply: