Skip to content
项目

关于

多用途 C++ 有限元法库

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

polyfem


Build codecov Nightly Docs

PolyFEM is a polyvalent C++ FEM library.

Compilation

PolyFEM is tested on Windows, macOS, and Linux. A source build requires:

  • CMake 3.25 or newer;
  • a C++17 compiler;
  • Git and an internet connection during the first CMake configuration, which downloads the C++ dependencies; and
  • Python 3, including its development headers, unless Python expressions are disabled with -DPOLYFEM_WITH_PYTHON=OFF.

Ninja is optional, but recommended for consistent cross-platform build commands. Configure and build PolyFEM with:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build

To build without Ninja, omit -G Ninja; CMake will select a generator available on the system.

On Linux, zenity is required for the file dialog window to work. On macOS and Windows, the native windows are used directly.

On macOS, the current CMake setup does not work with SuiteSparse installed via MacPorts. Please either use Homebrew or disable SPQR with -DPOLYSOLVE_WITH_SPQR=OFF.

Optional

The formula for higher-order bases can be regenerated at CMake time using external Python scripts. Regeneration additionally requires:

  • numpy and sympy
  • quadpy

Usage

The main executable, ./PolyFEM_bin, can be called with a GUI or through a command-line interface. Simply run:

./PolyFEM_bin

A more detailed documentation can be found on the website.

HDF5 input: Python expression limitation

Python expression scripts stored in an HDF5 bundle must be self-contained with respect to bundled files. PolyFEM extracts the requested script to a temporary file; it does not extract sibling files or redirect Python's file reads and imports through the HDF5 resource reader. For example, reading a data file beside __file__ will not find that file inside the bundle.

Files accessed indirectly by Python are not automatically discovered or embedded in checkpoints. Installed Python packages must remain available in the runtime environment. Ordinary filesystem inputs retain their normal Python file-access behavior.

Documentation

The full documentation can be found at https://polyfem.github.io/

Community Projects

  • PolyFEM Blender Plugin provides a community-maintained Blender interface for creating and running PolyFEM scenes.

License

The code of PolyFEM itself is licensed under MIT License. However, please be mindful of third-party libraries which are used by PolyFEM and may be available under a different license.

Citation

If you use PolyFEM in your project, please consider citing our work:

@misc{polyfem,
  author = {Teseo Schneider and Jérémie Dumas and Xifeng Gao and Denis Zorin and Daniele Panozzo},
  title = {{Polyfem}},
  howpublished = "\url{https://polyfem.github.io/}",
  year = {2019},
}
@article{Schneider:2019:PFM,
  author = {Schneider, Teseo and Dumas, J{\'e}r{\'e}mie and Gao, Xifeng and Botsch, Mario and Panozzo, Daniele and Zorin, Denis},
  title = {Poly-Spline Finite-Element Method},
  journal = {ACM Trans. Graph.},
  volume = {38},
  number = {3},
  month = mar,
  year = {2019},
  url = {http://doi.acm.org/10.1145/3313797},
  publisher = {ACM}
}
@article{Schneider:2018:DSA,
    author = {Teseo Schneider and Yixin Hu and Jérémie Dumas and Xifeng Gao and Daniele Panozzo and Denis Zorin},
    journal = {ACM Transactions on Graphics},
    link = {},
    month = {10},
    number = {6},
    publisher = {Association for Computing Machinery (ACM)},
    title = {Decoupling Simulation Accuracy from Mesh Quality},
    volume = {37},
    year = {2018}
}

Acknowledgments & Funding

The software is being developed in the Geometric Computing Lab at NYU Courant Institute of Mathematical Sciences and the University of Victoria, Canada.

This work was partially supported by:

  • the NSF CAREER award 1652515
  • the NSF grant IIS-1320635
  • the NSF grant DMS-1436591
  • the NSF grant 1835712
  • the SNSF grant P2TIP2_175859
  • the NSERC grant RGPIN-2021-03707
  • the NSERC grant DGECR-2021-00461
  • Adobe Research
  • nTopology

探索相关项目

加载中…