freshcrate

Description

Next generation FEniCS Form Compiler for finite element forms

README

FFCx: The FEniCSx Form Compiler

FFCx CI Spack install Coverage Status

FFCx is a new version of the FEniCS Form Compiler. It is being actively developed and is compatible with DOLFINx.

FFCx is a compiler for finite element variational forms. From a high-level description of the form in the Unified Form Language (UFL), it generates efficient low-level C code that can be used to assemble the corresponding discrete operator (tensor). In particular, a bilinear form may be assembled into a matrix and a linear form may be assembled into a vector. FFCx may be used either from the command line (by invoking the ffcx command) or as a Python module (import ffcx).

FFCx is part of the FEniCS Project. For more information, visit https://www.fenicsproject.org

Installation

To install FFCx from PyPI:

$ pip install fenics-ffcx

To install FFCx from the source directory:

$ pip install .

Documentation

Documentation can be viewed at https://docs.fenicsproject.org/ffcx/main

Interface file installation only

FFCx provides the ufcx.h interface header for finite element kernels, used by DOLFINx. ufcx.h is installed by FFCx within the Python site packages, but it is sometimes helpful to install only the header file. This can be done using cmake:

$ cmake -B build-dir -S cmake/
$ cmake --build build-dir
$ cmake --install build-dir

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Release History

VersionChangesUrgencyDate
v0.10.1.post0Bumps the version number (!). **Full Changelog**: https://github.com/FEniCS/ffcx/compare/v0.10.1...v0.10.1.post0Low11/27/2025
v0.10.1This release backports PR https://github.com/FEniCS/ffcx/pull/797 which fixes a critical bug which arises when multiple integrals in a form have the same quadrature rule. Users are advised to upgrade. **Full Changelog**: https://github.com/FEniCS/ffcx/compare/v0.10.0...v0.10.1Low11/11/2025
v0.10.0## What's Changed This version contains a critical bug and users are advised to use `v0.10.1`. ### Features and API changes * Add many geometrical quantities to ffcx expression generator. by @jorgensd in https://github.com/FEniCS/ffcx/pull/725 * Fix `ufl.real` return type in generated code by @jorgensd in https://github.com/FEniCS/ffcx/pull/728 * get vertex quadrature from basix by @mscroggs in https://github.com/FEniCS/ffcx/pull/736 * Make ds integrals on prism/pyramids generate kerLow10/22/2025
v0.9.0This is a major release of FFCx and users are advised to upgrade. ## What's Changed ### Features and API changes * Add support for mixed-dimensional kernels (codimension 1) by @jpdean in https://github.com/FEniCS/ffcx/pull/675 * Add symmetric to finite element by @mscroggs in https://github.com/FEniCS/ffcx/pull/684 * Change to INTERFACE in C17 requirement for ufcx target by @jhale in https://github.com/FEniCS/ffcx/pull/710 * Unify Expression and IntegralIR with a common base by @jorgLow10/10/2024
v0.8.0## What's Changed * Remove unused file by @IgorBaratta in https://github.com/FEniCS/ffcx/pull/620 * Bump version to 0.8.0.dev0 by @jhale in https://github.com/FEniCS/ffcx/pull/621 * Add Spack CI by @garth-wells in https://github.com/FEniCS/ffcx/pull/623 * Update UFL element by @mscroggs in https://github.com/FEniCS/ffcx/pull/614 * Add Spack CI badge by @garth-wells in https://github.com/FEniCS/ffcx/pull/624 * Remove `setup.cfg` by @garth-wells in https://github.com/FEniCS/ffcx/pull/625 * Low4/24/2024
v0.7.0## What's Changed * Raise on invalid function name by @michalhabera in https://github.com/FEniCS/ffcx/pull/539 * Tweak root logging handlers by @michalhabera in https://github.com/FEniCS/ffcx/pull/554 * Bump dev versions by @garth-wells in https://github.com/FEniCS/ffcx/pull/555 * Fix ufl version in setup files by @garth-wells in https://github.com/FEniCS/ffcx/pull/558 * Remove import of private basix definitions by @garth-wells in https://github.com/FEniCS/ffcx/pull/559 * Use simplified bLow10/5/2023
v0.6.0## What's Changed * Updates to 0.5.1.dev0 by @chrisrichardson in https://github.com/FEniCS/ffcx/pull/523 * Update ufcx by @chrisrichardson in https://github.com/FEniCS/ffcx/pull/525 * Add sobolev spaces to ufl wrapper by @mscroggs in https://github.com/FEniCS/ffcx/pull/524 * Fix various typos by @luzpaz in https://github.com/FEniCS/ffcx/pull/526 * Adds Real Space by @jhale in https://github.com/FEniCS/ffcx/pull/509 * Use Basix element functionality over UFL by @mscroggs in https://github.cLow2/14/2023
v0.5.0.post0This post-release fixes an error in the `setup.cfg` file that affected wheel uploads to pypi.org The core FFCx library is unaffected and users can use v0.5.0 or v0.5.0.post0 tags interchangeably. **Full Changelog**: https://github.com/FEniCS/ffcx/compare/v0.5.0...v0.5.0.post0Low8/24/2022
v0.5.0## What's Changed * Fix wheel pypi push by @jhale in https://github.com/FEniCS/ffcx/pull/486 * Bump version to 0.4.3.dev0 by @jhale in https://github.com/FEniCS/ffcx/pull/487 * Write ndofs into generated code for custom elements by @mscroggs in https://github.com/FEniCS/ffcx/pull/488 * Support specification of DOLFINx, FFCx and UFL branches/tags in Actions CI by @garth-wells in https://github.com/FEniCS/ffcx/pull/490 * Revert constraint on setuptools version by @garth-wells in https://githuLow8/23/2022
v0.4.2**Full Changelog**: https://github.com/FEniCS/ffcx/compare/0.4.1.post0...v0.4.2Low5/6/2022
v0.4.1Fixes some problems with the ufcx.h header fileLow5/4/2022
v0.4.0## What's Changed * Fix geometry array width at 3 in generated code by @garth-wells in https://github.com/FEniCS/ffcx/pull/358 * Update DOLFINx branch by @garth-wells in https://github.com/FEniCS/ffcx/pull/360 * Return C code string by @michalhabera in https://github.com/FEniCS/ffcx/pull/359 * Update to 0.1.1 by @chrisrichardson in https://github.com/FEniCS/ffcx/pull/357 * Add prism cell by @chrisrichardson in https://github.com/FEniCS/ffcx/pull/361 * Move DOF transformations out of kernelLow4/29/2022

Dependencies & License Audit

Loading dependencies...

Similar Packages

uipath-ai-skillsAI skills that turns coding agents into UiPath experts.0.0.0
BESSERA Python-based low-modeling low-code open-source platform for smart and AI-enhanced softwarev7.1.7
ai-dataset-generator🤖 Generate tailored AI training datasets quickly and easily, transforming your domain knowledge into essential training data for model fine-tuning.main@2026-04-21
dopEffectCSharp🚀 Maximize your C# productivity with advanced techniques in strings, LINQ, and clean code, inspired by the book "Produtivo com C#."master@2026-04-21
antonMost advanced AI coworkerv2.0.2