Code Monkey home page Code Monkey logo

polyquad's Introduction

Polyquad

About

Polyquad is an open-source C++ application for finding symmetric quadrature rules suitable for use with the finite element method. Both the target strength of the quadrature and the number of points are configurable. Polyquad is parallelised using MPI and can refine rules to an arbitrary degree of numerical precision.

Authors

See the AUTHORS file.

License

Polyquad is release under the GNU GPL v3.0 license. Please see COPYING for further details.

Dependencies

In order to build polyquad it is necessary to have first installed:

  • CMake 2.8;
  • Eigen, preferably the current head revision;
  • Boost, specifically
  • mpi (optional)
  • multiprecision
  • program_options
  • serialization

If Boost MPI and a suitable compiler are found then polyquad will be able to run on clusters. As polyquad makes use of advanced template metaprogramming features it is important to build it using a compiler that supports the C++17 standard. As of the time of writing the following compilers are known to have successfully built polyquad:

  • GCC 9.2;
  • Clang 8.

Building polyquad can require in excess of four gigabytes of main memory and several minutes of CPU time.

Building polyquad

After cloning the repository polyquad can be built by issuing the following commands:

$ mkdir build
$ cd build
$ cmake -G"Unix Makefiles" ../
$ make

for further information please consult the CMake documentation and the CMakeLists.txt file.

Running polyquad

Usage instructions can be obtained by running:

$ ./polyquad --help

a simple example we consider using polyquad to search for strength 5 rules inside of a tetrahedron using 15 points:

$ ./polyquad find -s tet -q5 -n15 -V -p > rules.txt

where -V enables verbose output and -p requires all rules to have positive weights. We can then convert the rules from the internal representation used by polyquad to a standard tabular format by issuing:

$ ./polyquad expand -s tet -q5 < rules.txt > rules-tab.txt

polyquad's People

Contributors

freddiewitherden 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.