![]() vertex i is accessible in mesh.Vertex(i)Ĭout << "Coordinate of vertex 4" << mesh.Vertex(4) << endl Mesh.CreateRegularMesh(Real_wp(-3), Real_wp(2), 100, ref_domain) Int ref_domain = 1 // reference for all the elements created for example, you want to mesh the interval with 100 points Below, we have written an example of use of this class The 2-D and 3-D meshes we have created by typing the previousĬommands are displayed in the figure belowĪ simple class has been created for 1-D meshes which is clearly different from the classes for 2-D and 3-D meshes. the extension tells what format is specified you can also read a mesh (instead of creating it) ![]() we create connectivity between edges, faces and elements Mesh.BoundaryRef(5).InitTriangular(4, 3, 2, ref) Mesh.BoundaryRef(4).InitTriangular(4, 1, 3, ref) Mesh.BoundaryRef(3).InitTriangular(4, 1, 2, ref) Mesh.BoundaryRef(2).InitTriangular(0, 2, 3, ref) Mesh.BoundaryRef(1).InitTriangular(0, 1, 3, ref) Mesh.BoundaryRef(0).InitTriangular(0, 1, 2, ref) Mesh.Element(1).InitTetrahedral(1, 2, 3, 4, ref) Mesh.Element(0).InitTetrahedral(0, 1, 2, 3, ref) we create connectivity between edges and elements and edges on the boundary (you provide extremities numbers) Mesh.Element(1).InitTriangular(1, 2, 3, ref) Mesh.Element(0).InitTriangular(0, 1, 3, ref) creation of elements (you provide vertex numbers for each element) They are accessed through methods Boundary, BoundaryRef and Element : Represented by the following classes : Edge,įace and Volume. The elementary entities (edge, face, volume) included in a mesh are In the figure below, we display the hierarchy of intermediary classes used for the Mesh Other classes are only intermediary classes : Only these classes have to be used in the applications, the The class MeshNumbering stores numbers (usually associated with degrees of freedom)Īnd relies on an existing mesh. The leaf class Mesh depends on a template parameter that is theĭimension. ![]() The graphical display given by Medit, the numbers will be shifted. Numbers of an element in your C++ code, and compare the numbers with Operations of reading/writing, a conversion is performed, so that it In the mesh structure proposed by Montjoie, theĠ-convention is used, every number begins from 0. That is to say that every number (vertex number, element number)īegins from 1. Potentialities in Montjoie, you can include MontjoieMesh.hxx instead Refinement of meshes (locally or globally). reading/writing meshes in several formats,Ĭreation of basic meshes (sphere, cube, cylinder, etc), Wedges (triangular prisms) and hexahedra in 3-D. Only conforming meshes are correctly treated in Montjoie, theyĬan comprise triangles and quadrilaterals in 2-D, tetrahedra, pyramids, We propose here some classes able to manipulate meshes in 2-D andģ-D.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |