Git Product home page Git Product logo

imr's Introduction

Build Status Coverage Status License: MIT

Intermediate Mesh Representation

A reader for Gmsh files for processing serial and decomposed grids. This project is a command line interface (CLI) program and is designed to perform the off-line conversion of serial and decomposed grids into separate JSON mesh files. These files can be readily imported into a numerical analysis program using JSON readers avoiding dealing with the format of .msh files.

alt text

Building

This project uses CMake as the build system and can be built out-of-tree using:

  • mkdir build && cd build
  • cmake -DCMAKE_BUILD_TYPE=Release ..
  • make all

Optionally, you can also install the binary to a system location by

  • make install

Gmsh file format

Gmsh specifies information tags and the nodal connectivity for each element. When a mesh is partitioned, for example with two partitions, the information tags would have the following data:

10 2 5 1 6 2 2 -1 5 22 4
element # element type (Triangle3) tags physical # geometrical # processes owner ghost nodalConnectivity

GmshReader parses the file and splits the elements into groups based on their element type. If the mesh contains partitions, then these are split into separate files so each processor can read in their respective mesh partition without parsing the original file.

Usage

Examples of usage are available in the project directory examples. There is also a command line interface with the list of command line options given by executing

  • gmshreader --help

Issues

If there are any issues in using the program, please open an issue using the GitHub tool above. Bug reports, suggestions and improvements are very welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.