Code Monkey home page Code Monkey logo

FInAT: a smarter library of finite elements

Unlike FIAT, “FInAT Is not A Tabulator.” Instead, it provides symbolic expressions for the evaluation of finite elements. Thus FInAT can express the structure that is intrinsic to some finite elements, which a form compiler can exploit to automatically:

  • sum factorise continuous, discontinuous, H(div) and H(curl) conforming elements on cuboid cells;
  • optimise evaluation at collocated quadrature points when under-integration is requested; and
  • optimise evaluation on vector and tensor elements.

Furthermore, FInAT is equipped to provide symbolic expressions for basis transformations when the caller implements an interface capable of providing (symbolic expressions for) the required geometric quantities (such as Jacobians, normals, or tangents), which facilitates the implementation of finite elements such as Hermite, Morley, Bell, and Argyris within an automatic code generation framework.

The goal of FInAT is to be a “single source of truth” for finite elements. This includes not only basis function evaluation, like FIAT, but also structural and algorithmic considerations as well as reference element transformations. Symbolic expression languages and form compilers can then exploit this information in an element-independent manner.

FInAT is integrated with TSFC and is a component of Firedrake, “an automated system for the portable solution of partial differential equations using the finite element method.” To facilitate the exchange of symbolic expressions between the element library on the one hand, and the form compiler on the other, they need to agree on a common language. Where FIAT communicated with the form compiler through numerical arrays, FInAT communicates with the form compiler by exchanging GEM expressions. GEM is the intermediate language used in both TSFC and FInAT to describe tensor algebra.

References

  1. Miklós Homolya, Robert C. Kirby, and David A. Ham (2017). “Exposing and exploiting structure: optimal code generation for high-order finite element methods.” arXiv preprint arXiv:1711.02473.
  2. Robert C. Kirby, and Lawrence Mitchell (2019). “Code generation for generally mapped finite elements.” ACM Transactions on Mathematical Software (TOMS), 45(4), pp. 1-23.

License

All files in this repository are available under the MIT license, see the LICENSE file for details.

finat's Projects

finat icon finat

A smarter library of finite elements

pymbolic icon pymbolic

A simple package to do symbolic math (focus on code gen and DSLs)

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.