# \#dolfinx

**URL:** https://fenicsproject.discourse.group/tag/dolfinx/7.md

[Latest](https://fenicsproject.discourse.group/latest.md) · [Categories](https://fenicsproject.discourse.group/categories.md) · [Tags](https://fenicsproject.discourse.group/tags.md)

---

## [Introducing MCP for Fenics](https://fenicsproject.discourse.group/t/introducing-mcp-for-fenics/19542)

<div class="topic-metadata">

**Author:** [@estanley](https://fenicsproject.discourse.group/u/estanley)\
**Replies:** 1\
**Last updated:** [October 25, 2026, 11:59am UTC](https://fenicsproject.discourse.group/t/introducing-mcp-for-fenics/19542 "2026-10-25T11:59:33Z")

</div>

Hi! This all started because I wanted to be able to talk to Claude about a problem set and it evolved from there. So introducing a MCP for Dolfinx! I also made a Claude CoWork plugin so you can install that have access …

---

## [BC application when using non linear solver (dolfinx\_mpc)](https://fenicsproject.discourse.group/t/bc-application-when-using-non-linear-solver-dolfinx-mpc/18431)

<div class="topic-metadata">

**Author:** [@gianmon99](https://fenicsproject.discourse.group/u/gianmon99)\
**Replies:** 4\
**Last updated:** [October 11, 2026, 6:23am UTC](https://fenicsproject.discourse.group/t/bc-application-when-using-non-linear-solver-dolfinx-mpc/18431 "2026-10-11T06:23:59Z")

</div>

I’m trying to implement a RANS simulation on a periodic hill (using the k-epsilon turbulence model) However it seems like I’m unable to apply the BC to the speed ad the pressure when I’m using the NonLinear solver of do…

---

## [Mass matrix between non matching meshes](https://fenicsproject.discourse.group/t/mass-matrix-between-non-matching-meshes/19835)

<div class="topic-metadata">

**Author:** [@JanvdW](https://fenicsproject.discourse.group/u/JanvdW)\
**Replies:** 1\
**Last updated:** [September 29, 2026, 3:14am UTC](https://fenicsproject.discourse.group/t/mass-matrix-between-non-matching-meshes/19835 "2026-09-29T03:14:26Z")

</div>

Hi, I have the following setup. I have two finite element spaces, T\_h and T\_H. The mesh of T\_h is a true refinement of the mesh of T\_H. Also, T\_h uses a cg Lagrange basis of degree one, while T\_H uses a dg Legendre basi…

---

## [Memory allocation error when reading in cell tags from a pre-defined mesh file](https://fenicsproject.discourse.group/t/memory-allocation-error-when-reading-in-cell-tags-from-a-pre-defined-mesh-file/19808)

<div class="topic-metadata">

**Author:** [@Lev](https://fenicsproject.discourse.group/u/Lev)\
**Replies:** 3\
**Last updated:** [September 9, 2026, 7:49am UTC](https://fenicsproject.discourse.group/t/memory-allocation-error-when-reading-in-cell-tags-from-a-pre-defined-mesh-file/19808 "2026-09-09T07:49:46Z")

</div>

I’m trying to load a mesh from an XDMF and H5 file (created in Gmsh) using the following code: from mpi4py import MPI # Create the MPI communicator comm = MPI.COMM\_WORLD import dolfinx # using dolfinx v0.7.2 import nu…

---

## [How are 1st-order differential equations handled?](https://fenicsproject.discourse.group/t/how-are-1st-order-differential-equations-handled/19807)

<div class="topic-metadata">

**Author:** [@fea](https://fenicsproject.discourse.group/u/fea)\
**Replies:** 4\
**Last updated:** [September 8, 2026, 11:26am UTC](https://fenicsproject.discourse.group/t/how-are-1st-order-differential-equations-handled/19807 "2026-09-08T11:26:36Z")

</div>

I’m on Dolfinx version 0.10.0, and I wanted to perform \\int\_0^x f(x) dx by converting the integral into a 1st-order ODE \\frac{du}{dx} = f(x) \\ \\ \\ \\ \\forall x\\in 0\\le x\\le L with f(x) = 1-2x, u(L) = 0; the exact solut…

---

## [Mixing dolfinx\_mpc and scifem packages](https://fenicsproject.discourse.group/t/mixing-dolfinx-mpc-and-scifem-packages/18310)

<div class="topic-metadata">

**Author:** [@Ergonsa](https://fenicsproject.discourse.group/u/Ergonsa)\
**Replies:** 4\
**Last updated:** [July 20, 2026, 5:06pm UTC](https://fenicsproject.discourse.group/t/mixing-dolfinx-mpc-and-scifem-packages/18310 "2026-07-20T17:06:29Z")

</div>

Hello everyone, after the announcement of dolfinx v0.10.0, I decided to retake the issue of Mixing dolfinx\_mpc and scifem packages for a nonlinear problem in which I tried to solve an homogenisation problem, i.e., with p…

---

## [AV formulation with fieldsplit Hypre AMS](https://fenicsproject.discourse.group/t/av-formulation-with-fieldsplit-hypre-ams/19727)

<div class="topic-metadata">

**Author:** [@mattiafilips](https://fenicsproject.discourse.group/u/mattiafilips)\
**Replies:** 4\
**Last updated:** [July 20, 2026, 12:51pm UTC](https://fenicsproject.discourse.group/t/av-formulation-with-fieldsplit-hypre-ams/19727 "2026-07-20T12:51:41Z")

</div>

Hi, I am trying to solve the low frequency magnetoquasistatic equation with AV formulation with Coulomb gauge. I use Nedelec1 for A, CG1 for the scalar potential V and the lagrange multipliers used to force the A gauge.…

---

## [Computing normal and tangent stress at boundary in contact problem with hyperelastic material](https://fenicsproject.discourse.group/t/computing-normal-and-tangent-stress-at-boundary-in-contact-problem-with-hyperelastic-material/19764)

<div class="topic-metadata">

**Author:** [@bpsharma](https://fenicsproject.discourse.group/u/bpsharma)\
**Replies:** 1\
**Last updated:** [July 8, 2026, 6:16pm UTC](https://fenicsproject.discourse.group/t/computing-normal-and-tangent-stress-at-boundary-in-contact-problem-with-hyperelastic-material/19764 "2026-07-08T18:16:06Z")

</div>

Hi everyone I am solving a Nitsche-based Coulomb friction contact problem in DOLFINx for a simple triangle in contact with a flat, rigid plane (y=0). I am trying to extract and verify the normal and tangential stress co…

---

## [Why do I obtain inaccurate mode shapes from SLEPc PEP-solver for 3D elasticity problem with periodic BC?](https://fenicsproject.discourse.group/t/why-do-i-obtain-inaccurate-mode-shapes-from-slepc-pep-solver-for-3d-elasticity-problem-with-periodic-bc/19753)

<div class="topic-metadata">

**Author:** [@nadine](https://fenicsproject.discourse.group/u/nadine)\
**Replies:** 6\
**Last updated:** [July 3, 2026, 9:53am UTC](https://fenicsproject.discourse.group/t/why-do-i-obtain-inaccurate-mode-shapes-from-slepc-pep-solver-for-3d-elasticity-problem-with-periodic-bc/19753 "2026-07-03T09:53:13Z")

</div>

Hi everyone, I’m implementing an inverse dispersion solver in DOLFINx that computes complex wavenumbers k(ω) for waves in a periodic elastic 3D structure, using the SLEPc PEP-solver and Bloch periodic boundary condition…

---

## [Prolongation matrix in dolfinx](https://fenicsproject.discourse.group/t/prolongation-matrix-in-dolfinx/19735)

<div class="topic-metadata">

**Author:** [@JanvdW](https://fenicsproject.discourse.group/u/JanvdW)\
**Replies:** 0\
**Last updated:** [June 12, 2026, 2:57pm UTC](https://fenicsproject.discourse.group/t/prolongation-matrix-in-dolfinx/19735 "2026-06-12T14:57:18Z")

</div>

Hi, I am working on implementing LOD-methods in python. For these methods I am working two 2d DG function spaces of degree 1 (a coarse and a fine space). The fine mesh is obtained via dfx.mesh.refine. I am now looking t…

---

## [Slope limiting for the St.Venant equations in DOLFINx](https://fenicsproject.discourse.group/t/slope-limiting-for-the-st-venant-equations-in-dolfinx/19708)

<div class="topic-metadata">

**Author:** [@Testosteronnie](https://fenicsproject.discourse.group/u/Testosteronnie)\
**Replies:** 4\
**Last updated:** [May 20, 2026, 8:22am UTC](https://fenicsproject.discourse.group/t/slope-limiting-for-the-st-venant-equations-in-dolfinx/19708 "2026-05-20T08:22:15Z")

</div>

Hi, I am currently using a RK solver to solve the ST. Venant equations for a square channel given by \\frac{\\partial A}{\\partial t}+\\frac{\\partial Q}{\\partial s}=0 and \\frac{\\partial Q}{\\partial t} + \\frac{\\partial}{\\…

---

## [Mixed problem with tensor function subspaces without solution](https://fenicsproject.discourse.group/t/mixed-problem-with-tensor-function-subspaces-without-solution/19710)

<div class="topic-metadata">

**Author:** [@elefant5320](https://fenicsproject.discourse.group/u/elefant5320)\
**Replies:** 0\
**Last updated:** [May 19, 2026, 8:57am UTC](https://fenicsproject.discourse.group/t/mixed-problem-with-tensor-function-subspaces-without-solution/19710 "2026-05-19T08:57:51Z")

</div>

Hello FENICSx users, I need to solve this elementary problem from strain gradient elasticity using mixed formulation \\begin{equation} \\begin{split} &\\int\_{\\Omega}\\big\[\\boldsymbol{\\sigma}:\\delta\\boldsymbol{\\varepsilon}…

---

## [Why is my quadratic eigenvalue solver for inverse dispersion in a periodic rod not converging to the expected eigenvalues? (DOLFINx + SLEPc)](https://fenicsproject.discourse.group/t/why-is-my-quadratic-eigenvalue-solver-for-inverse-dispersion-in-a-periodic-rod-not-converging-to-the-expected-eigenvalues-dolfinx-slepc/19673)

<div class="topic-metadata">

**Author:** [@nadine](https://fenicsproject.discourse.group/u/nadine)\
**Replies:** 2\
**Last updated:** [May 11, 2026, 8:49am UTC](https://fenicsproject.discourse.group/t/why-is-my-quadratic-eigenvalue-solver-for-inverse-dispersion-in-a-periodic-rod-not-converging-to-the-expected-eigenvalues-dolfinx-slepc/19673 "2026-05-11T08:49:51Z")

</div>

Hello everyone, I’m implementing an inverse dispersion solver in DOLFINx that computes complex wavenumbers k(\\omega) for waves in a periodic elastic 3D structure. Instead of solving the forward eigenvalue problem \\omega…

---

## [Can not implement a spectral element method](https://fenicsproject.discourse.group/t/can-not-implement-a-spectral-element-method/19680)

<div class="topic-metadata">

**Author:** [@mariom121](https://fenicsproject.discourse.group/u/mariom121)\
**Replies:** 1\
**Last updated:** [May 9, 2026, 1:27am UTC](https://fenicsproject.discourse.group/t/can-not-implement-a-spectral-element-method/19680 "2026-05-09T01:27:51Z")

</div>

Dear Fenics community, inspired by the post Does Fenicsx support spectral element methods? , I built an attempt to apply spectral element methods to the computation of an eigenvalue problem (specifically, the quasi-norma…

---

## [MPI Error: 'Invalid rank, error stack' when reading mesh](https://fenicsproject.discourse.group/t/mpi-error-invalid-rank-error-stack-when-reading-mesh/17511)

<div class="topic-metadata">

**Author:** [@mame](https://fenicsproject.discourse.group/u/mame)\
**Replies:** 5\
**Last updated:** [May 1, 2026, 7:10am UTC](https://fenicsproject.discourse.group/t/mpi-error-invalid-rank-error-stack-when-reading-mesh/17511 "2026-05-01T07:10:51Z")

</div>

Hi everyone, I am trying to get my first 3D project to work. I have this simple script to just read a mesh I created from a .geo file in Gmsh 4.13.1 (.geo file at the very end): from mpi4py import MPI import dolfinx.io…

---

## [Create periodic mesh of a sector geometry](https://fenicsproject.discourse.group/t/create-periodic-mesh-of-a-sector-geometry/19660)

<div class="topic-metadata">

**Author:** [@sbhasan](https://fenicsproject.discourse.group/u/sbhasan)\
**Replies:** 0\
**Last updated:** [April 18, 2026, 2:03am UTC](https://fenicsproject.discourse.group/t/create-periodic-mesh-of-a-sector-geometry/19660 "2026-04-18T02:03:51Z")

</div>

I have a sector geometry where the sector boundaries should be periodic. I am using routines defined in script to turn the mesh periodic. First challenge I encounter is that script.create\_periodic\_mesh does not work with…

---

## [FFCX compiler files size limit with petsc.assemble\_matrix](https://fenicsproject.discourse.group/t/ffcx-compiler-files-size-limit-with-petsc-assemble-matrix/19654)

<div class="topic-metadata">

**Author:** [@mariom121](https://fenicsproject.discourse.group/u/mariom121)\
**Replies:** 11\
**Last updated:** [April 17, 2026, 2:52pm UTC](https://fenicsproject.discourse.group/t/ffcx-compiler-files-size-limit-with-petsc-assemble-matrix/19654 "2026-04-17T14:52:21Z")

</div>

Dear Fenics community: 'm building a fenicsx / dolfinx code for a physical equation built with sympy, which is very intrincate. The physics of the equation are fine but I need to emulate spectral methods and thus I need …

---

## [How do I define a function with locally varying coefficients?](https://fenicsproject.discourse.group/t/how-do-i-define-a-function-with-locally-varying-coefficients/19643)

<div class="topic-metadata">

**Author:** [@lisa](https://fenicsproject.discourse.group/u/lisa)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 4:33am UTC](https://fenicsproject.discourse.group/t/how-do-i-define-a-function-with-locally-varying-coefficients/19643 "2026-04-08T04:33:21Z")

</div>

Hi everybody! I am trying to define a function, depending on locally varyíng coefficients and on spatial coordinates, but so far without success. Here is my MWE based on a tutorial example “Defining subdomains for diffe…

---

## [How to implement custom quadrature rule?](https://fenicsproject.discourse.group/t/how-to-implement-custom-quadrature-rule/19628)

<div class="topic-metadata">

**Author:** [@TorchMindCipher](https://fenicsproject.discourse.group/u/TorchMindCipher)\
**Replies:** 2\
**Last updated:** [April 1, 2026, 12:25pm UTC](https://fenicsproject.discourse.group/t/how-to-implement-custom-quadrature-rule/19628 "2026-04-01T12:25:01Z")

</div>

Hello, I would like to know if it is possible and if so, how to implement a custom quadrature rule in dolfinx? I am currently working on the third medium contact method and need the Gauss-Lobatto-Legendre quadrature. I…

---

## [Second order meshes interpolation error](https://fenicsproject.discourse.group/t/second-order-meshes-interpolation-error/19544)

<div class="topic-metadata">

**Author:** [@chenyongxin](https://fenicsproject.discourse.group/u/chenyongxin)\
**Replies:** 14\
**Last updated:** [March 20, 2026, 11:30am UTC](https://fenicsproject.discourse.group/t/second-order-meshes-interpolation-error/19544 "2026-03-20T11:30:42Z")

</div>

I simulate ALE FSI problem in 3D with 2nd order meshes. In my framework, a remeshing process is needed to interpolate data from the old mesh to the new mesh in every several steps. Here a strange interpolation result is …

---

## [Error with UFL condition in complex-valued problems](https://fenicsproject.discourse.group/t/error-with-ufl-condition-in-complex-valued-problems/19611)

<div class="topic-metadata">

**Author:** [@alvarez-pa](https://fenicsproject.discourse.group/u/alvarez-pa)\
**Replies:** 4\
**Last updated:** [March 20, 2026, 11:08am UTC](https://fenicsproject.discourse.group/t/error-with-ufl-condition-in-complex-valued-problems/19611 "2026-03-20T11:08:09Z")

</div>

Hello all, I am trying to use ufl.conditional for a complex-valued problem. For the condition argument, I have tried both binary operators (\<, \<=, \>, \>=) and UFL operators (ufl.lt, ufl.le, ufl.gt, ufl.ge) without succes…

---

## [Caching in Fenicsx and NFS error](https://fenicsproject.discourse.group/t/caching-in-fenicsx-and-nfs-error/19600)

<div class="topic-metadata">

**Author:** [@vysakh\_r\_nair](https://fenicsproject.discourse.group/u/vysakh_r_nair)\
**Replies:** 3\
**Last updated:** [March 13, 2026, 5:03am UTC](https://fenicsproject.discourse.group/t/caching-in-fenicsx-and-nfs-error/19600 "2026-03-13T05:03:36Z")

</div>

Hello everyone, I am running FEniCSx (dolfinx) simulations on an HPC cluster and recently encountered issues related to JIT caching and NFS load. The cluster administrators observed a large number of NFS operations orig…

---

## [Missing entries in matrix assembled from facet submesh custom kernel](https://fenicsproject.discourse.group/t/missing-entries-in-matrix-assembled-from-facet-submesh-custom-kernel/19576)

<div class="topic-metadata">

**Author:** [@leshinka](https://fenicsproject.discourse.group/u/leshinka)\
**Replies:** 0\
**Last updated:** [March 5, 2026, 10:09am UTC](https://fenicsproject.discourse.group/t/missing-entries-in-matrix-assembled-from-facet-submesh-custom-kernel/19576 "2026-03-05T10:09:43Z")

</div>

I created a custom kernel using numba and ffcx for a facet submesh. The resulting matrix seems to be missing entries. The matrix should have blocks of the form \[\[1. 0.5 0. 0. 0. 0.…

---

## [Inconsistencies/ holes in mesh or "DOLFIN encountered an error." While creating a mesh](https://fenicsproject.discourse.group/t/inconsistencies-holes-in-mesh-or-dolfin-encountered-an-error-while-creating-a-mesh/19561)

<div class="topic-metadata">

**Author:** [@ehadi](https://fenicsproject.discourse.group/u/ehadi)\
**Replies:** 9\
**Last updated:** [March 4, 2026, 7:24am UTC](https://fenicsproject.discourse.group/t/inconsistencies-holes-in-mesh-or-dolfin-encountered-an-error-while-creating-a-mesh/19561 "2026-03-04T07:24:35Z")

</div>

Hi all, I am working on a 2D quad mesh into DOLFIN from two .txt files; one containing the nodal coordinates and one containing the element connectivity for 4-node quads. The mesh looks correct in ParaView when exporte…

---

## [Problem of time-dependent Dirichlet BC for elastoplastic model](https://fenicsproject.discourse.group/t/problem-of-time-dependent-dirichlet-bc-for-elastoplastic-model/19524)

<div class="topic-metadata">

**Author:** [@Boyu\_Yuan](https://fenicsproject.discourse.group/u/Boyu_Yuan)\
**Replies:** 4\
**Last updated:** [February 23, 2026, 6:42pm UTC](https://fenicsproject.discourse.group/t/problem-of-time-dependent-dirichlet-bc-for-elastoplastic-model/19524 "2026-02-23T18:42:48Z")

</div>

Dear Community, I am currently constructing an elastoplastic model using FEniCSx, referencing the content in Elasto-plastic analysis of a 2D von Mises material. In this example, Dirichlet BCs are applied to the left and…

---

## [How to know the maximum and minumum values of DG solution without plotting?](https://fenicsproject.discourse.group/t/how-to-know-the-maximum-and-minumum-values-of-dg-solution-without-plotting/19521)

<div class="topic-metadata">

**Author:** [@frog](https://fenicsproject.discourse.group/u/frog)\
**Replies:** 1\
**Last updated:** [February 21, 2026, 10:16am UTC](https://fenicsproject.discourse.group/t/how-to-know-the-maximum-and-minumum-values-of-dg-solution-without-plotting/19521 "2026-02-21T10:16:56Z")

</div>

Hi, My question does not particularly belong to specific problems. When solving a PDE using CG FEM, since the basis functions are defined as 1 at each vertex, the DOFs are actually solution values. However, since DG bas…

---

## [If I want my solution to decay to 0 as space approaches infinity, what would be the best approach?](https://fenicsproject.discourse.group/t/if-i-want-my-solution-to-decay-to-0-as-space-approaches-infinity-what-would-be-the-best-approach/19474)

<div class="topic-metadata">

**Author:** [@fea](https://fenicsproject.discourse.group/u/fea)\
**Replies:** 9\
**Last updated:** [February 14, 2026, 7:13am UTC](https://fenicsproject.discourse.group/t/if-i-want-my-solution-to-decay-to-0-as-space-approaches-infinity-what-would-be-the-best-approach/19474 "2026-02-14T07:13:20Z")

</div>

I want to see if Dolfinx can solve the following Poisson Equation for a 2D fluid flow \\nabla^2 \\chi = \\nabla\\cdot\\textbf{V} \\lim\_{\\textbf{|x|}\\rightarrow \\infty}\\chi(x,y) = 0 and in order to simulate the infinite sp…

---

## [Problem with nested submeshes](https://fenicsproject.discourse.group/t/problem-with-nested-submeshes/19439)

<div class="topic-metadata">

**Author:** [@Ergonsa](https://fenicsproject.discourse.group/u/Ergonsa)\
**Replies:** 7\
**Last updated:** [February 13, 2026, 9:32am UTC](https://fenicsproject.discourse.group/t/problem-with-nested-submeshes/19439 "2026-02-13T09:32:20Z")

</div>

Hello everyone! I have been working recently in a magneto-mechanical problem in which I have several permanent magnets pointing to a solid shere (partially hollow, for BC imposition) which is sensible to magnetic stimuli…

---

## [Structural Modal Analysis](https://fenicsproject.discourse.group/t/structural-modal-analysis/19479)

<div class="topic-metadata">

**Author:** [@Finn\_Hansen](https://fenicsproject.discourse.group/u/Finn_Hansen)\
**Replies:** 1\
**Last updated:** [February 10, 2026, 2:57pm UTC](https://fenicsproject.discourse.group/t/structural-modal-analysis/19479 "2026-02-10T14:57:48Z")

</div>

I am trying to replecate the eigenfrequencies from this paper: Modal Analysis of Single Rectangular Cantilever Plate by Mathematically, FEA and Experimental Ashish R. Sonawane, Poonam S. Talmale I cant get to achive re…

---

## [Build native dolfinx on Windows using msys2](https://fenicsproject.discourse.group/t/build-native-dolfinx-on-windows-using-msys2/19436)

<div class="topic-metadata">

**Author:** [@hurt\_by\_fem](https://fenicsproject.discourse.group/u/hurt_by_fem)\
**Replies:** 0\
**Last updated:** [February 1, 2026, 11:45am UTC](https://fenicsproject.discourse.group/t/build-native-dolfinx-on-windows-using-msys2/19436 "2026-02-01T11:45:43Z")

</div>

Following a previous post about building dolfinx on windows: Making FEniCSx more available on Windows machines Has anyone tried to use msys2 to build dolfinx on Windows? It has both prebuilt petsc and MSMPI packages on …

[Next page](https://fenicsproject.discourse.group/tag/dolfinx/7.md?match_all_tags=true&page=1&tags%5B%5D=dolfinx)
