# How to creat mesh on the cube's surface?

Now I'm trying to solve a PDE by FEM, and I need creat the 2D mesh on the cube's surface, the figrue below shows my idea.

Both the quadrilateral elements and triangle element are OK. I read the Element Mesh Generation Tutorial but didn't find good way.

The field variable is not continuous when crossing the edges, so I want to use the standard FEM procedure rather than the built-in function to solve it, therefore I need to know every nodes' coordinates and the elements incidents, and then write the program by myself.

Besides, how can I get the coordinates of the nodes located at the edges if the mesh is created?

• By "edges", you mean the blue lines in your figure? Jan 2, 2016 at 15:18
• Yes, this is a problem of energy transfer, when the energy meet the "edge" it will partly reflected and partly transmission, so I need some special operation on the nodes located at the "edge". Jan 2, 2016 at 15:24

Needs["NDSolveFEM"]

• ToElementMesh[Cuboid[]] creates a 3D mesh. Use ToBoundaryMesh[Cuboid[]] to get the 2D surface mesh. Jan 2, 2016 at 20:40