Coder Social home page Coder Social logo

xdmf-fe-filter's Introduction

xdmf-fe-filter

ParaView filter to read Finite Element data in XDMF format

Format

At present, the XDMF contains an Unstructured Grid, i.e. mesh topology and geometry, and two Attributes, which must be named as xxx_ELEMENT_idx and xxx_ELEMENT_val, where xxx is user defined, and ELEMENT is one of:

  • CG1, CG2
  • DG0, DG1, DG2
  • RT1

The xxx_ELEMENT_val Attribute is a 1D float array, and the xxx_ELEMENT_idx is a 2D UInt array, with index values for the nodal values in each cell. Hence the first dimension must be the same as the number of cells. In order to read correctly, use the Xdmf3 reader in ParaView.

A script generate.py is provided, which uses experimental XDMF output in FEniCS to generate the XDMF files.

Testing in ParaView

  1. Open the XDMF file with the Xdmf3 reader
  2. Add a filter "ProgrammableFilter" and in the box paste: execfile("fe-filter.py") - you may need to add the full path.
  3. Select the output field of the filter to display and process as usual

Future Work

Add support for more elements (higher order, BDM, etc) , and more cell types (e.g. 1D, quadratic meshes)

xdmf-fe-filter's People

Contributors

chrisrichardson avatar

Watchers

 avatar

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.