Skip to content

Latest commit

 

History

History
106 lines (77 loc) · 4.33 KB

triangle_to_xml.md

File metadata and controls

106 lines (77 loc) · 4.33 KB

TRIANGLE_TO_XML
Convert Mesh Data from TRIANGLE to XML Format. {#triangle_to_xml-convert-mesh-data-from-triangle-to-xml-format. align="center"}


TRIANGLE_TO_XML is a C++ program which reads a pair of node and element files created by the TRIANGLE program and writes a corresponding XML mesh file that can be used by FENICS or DOLFIN.

Usage: {#usage align="center"}

triangle_to_xml prefix

where prefix is the common filename prefix so that:

  • prefix**.node** contains the coordinates of the nodes;
  • prefix**.ele** contains the indices of nodes forming each element.
  • prefix**.xml** will be the XML mesh file.

Licensing: {#licensing align="center"}

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages: {#languages align="center"}

TRIANGLE_TO_XML is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs: {#related-data-and-programs align="center"}

FEM_TO_XML, a C++ program which reads FEM files defining a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding XML file for input to DOLFIN or FENICS.

FENICS, examples which illustrate the use of FENICS, a collection of free software with an extensive list of features for automated, efficient solution of partial differential equations (PDE's).

SHOWME, a C program which can display the POLY files uses as input to TRIANGLE, and the output files that define meshes and other objects.

TRIANGLE, a C program which computes Voronoi diagrams and Delaunay triangulations, and creates and manipulates files that can be displayed by SHOWME.

TRIANGLE_FILES, a data directory of examples of files used by the triangle and showme programs.

TRIANGLE_IO, a C++ library which can read or write node and element files created by the TRIANGLE program.

TRIANGLE_TO_FEM, a C++ program which reads the NODE and ELE files created by triangle() to describe a triangular mesh, and writes two simple "mesh" format files, listing node coordinates and element connectivity.

TRIANGLE_TO_MEDIT, a C++ program which reads the NODE and ELE files created by triangle() to describe a triangular mesh, and writes a corresponding MESH file for input to medit().

XML, a data directory which contains examples of XML files, a standard, general datafile format.

Source Code: {#source-code align="center"}

Examples and Tests: {#examples-and-tests align="center"}

  • ell.node, a TRIANGLE node file.
  • ell.ele, a TRIANGLE element file.
  • ell.xml, the XML file created by the program.

List of Routines: {#list-of-routines align="center"}

  • MAIN is the main program for TRIANGLE_TO_XML.
  • MESH_BASE_ZERO ensures that the element definition is zero-based.
  • TIMESTAMP prints the current YMDHMS date as a time stamp.
  • TRIANGLE_ELEMENT_DATA_READ reads the data from an element file.
  • TRIANGLE_ELEMENT_SIZE_READ reads the header information from an element file.
  • TRIANGLE_NODE_DATA_READ reads the data from a node file.
  • TRIANGLE_NODE_SIZE_READ reads the header information from a node file.
  • XML_MESH2D_WRITE writes a 2D mesh as a DOLFIN XML file.

You can go up one level to the C++ source codes.


Last revised on 15 October 2014.