# \#boundary-conditions

**URL:** https://fenicsproject.discourse.group/tag/boundary-conditions/5.md?match_all_tags=true&page=1&tags%5B%5D=boundary-conditions

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

**Page:** 2

---

## [Nonzero pressure Navier Stokes](https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264)

<div class="topic-metadata">

**Author:** [@Nick\_Rovito](https://fenicsproject.discourse.group/u/Nick_Rovito)\
**Replies:** 4\
**Last updated:** [November 17, 2025, 6:40pm UTC](https://fenicsproject.discourse.group/t/nonzero-pressure-navier-stokes/18264 "2025-11-17T18:40:52Z")

</div>

Hi Dolfinx community! I’m working on a stabilized Navier-Stokes solver using DOLFINx 0.9.0 using equal order interpolation with SUPG and PSPG stabilization. The weak formulation follows the formulation in Donea & Huerta…

---

## [Periodic homogenisation: total displacement formulation](https://fenicsproject.discourse.group/t/periodic-homogenisation-total-displacement-formulation/18367)

<div class="topic-metadata">

**Author:** [@mariab](https://fenicsproject.discourse.group/u/mariab)\
**Replies:** 1\
**Last updated:** [November 15, 2025, 12:12pm UTC](https://fenicsproject.discourse.group/t/periodic-homogenisation-total-displacement-formulation/18367 "2025-11-15T12:12:03Z")

</div>

Hello everyone, I am working on a periodic homogenization problem for linear and (later) nonlinear elasticity. I have read the recent homogenization demo and the associated notes (e.g. Bleyer et al.), where the micropr…

---

## [Modal analysis with dolfinx + SLEPc gives wrong eigenfrequencies](https://fenicsproject.discourse.group/t/modal-analysis-with-dolfinx-slepc-gives-wrong-eigenfrequencies/18353)

<div class="topic-metadata">

**Author:** [@RobinS](https://fenicsproject.discourse.group/u/RobinS)\
**Replies:** 5\
**Last updated:** [November 11, 2025, 8:30pm UTC](https://fenicsproject.discourse.group/t/modal-analysis-with-dolfinx-slepc-gives-wrong-eigenfrequencies/18353 "2025-11-11T20:30:00Z")

</div>

Hey everyone, I’m currently trying to run a modal analysis for a simple 3D elastic body using FEniCSx and SLEPc, but I’m having trouble understanding why my results do not make physical sense. I’m trying to solve the E…

---

## [Divergent solver for a full-coupled 3D Thermoelastic solver.](https://fenicsproject.discourse.group/t/divergent-solver-for-a-full-coupled-3d-thermoelastic-solver/18334)

<div class="topic-metadata">

**Author:** [@Laarth](https://fenicsproject.discourse.group/u/Laarth)\
**Replies:** 2\
**Last updated:** [November 7, 2025, 9:38am UTC](https://fenicsproject.discourse.group/t/divergent-solver-for-a-full-coupled-3d-thermoelastic-solver/18334 "2025-11-07T09:38:08Z")

</div>

Hello ! I’m currently an intern trying to code in dolfinx 0.8.0 (python 3.11.13) to create a library of solvers, and tools to facilitate usage on complex meshes. I’ve been having a hard time finding working datasheet or…

---

## [Convergence difficulties with 3D periodic BCs](https://fenicsproject.discourse.group/t/convergence-difficulties-with-3d-periodic-bcs/18333)

<div class="topic-metadata">

**Author:** [@Ergonsa](https://fenicsproject.discourse.group/u/Ergonsa)\
**Replies:** 2\
**Last updated:** [November 6, 2025, 1:38pm UTC](https://fenicsproject.discourse.group/t/convergence-difficulties-with-3d-periodic-bcs/18333 "2025-11-06T13:38:30Z")

</div>

Hello everyone, Following my attempts of mixing dolfinx, dolfinx\_mpc and scifem packages all together, I came up with some issues regarding the convergence of the problem. To this end, I created a benchmark with a MWE, …

---

## [Periodic boundary conditions Homogenization](https://fenicsproject.discourse.group/t/periodic-boundary-conditions-homogenization/16318)

<div class="topic-metadata">

**Author:** [@Panagiotis\_Ilia](https://fenicsproject.discourse.group/u/Panagiotis_Ilia)\
**Replies:** 5\
**Last updated:** [November 3, 2025, 6:06pm UTC](https://fenicsproject.discourse.group/t/periodic-boundary-conditions-homogenization/16318 "2025-11-03T18:06:24Z")

</div>

Hey! I am Itryng to implement periodic boundary conditions to commpute the mechanical properties of an elastically heterogeneous material. I am trying to undestant how to do this using dolphinx\_mpc. I wrote a code with D…

---

## [\[dolfinx\] How to correctly identify boundary DOFs in a collapsed subspace for iterative BC updates?](https://fenicsproject.discourse.group/t/dolfinx-how-to-correctly-identify-boundary-dofs-in-a-collapsed-subspace-for-iterative-bc-updates/18300)

<div class="topic-metadata">

**Author:** [@dom\_a](https://fenicsproject.discourse.group/u/dom_a)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 5:31pm UTC](https://fenicsproject.discourse.group/t/dolfinx-how-to-correctly-identify-boundary-dofs-in-a-collapsed-subspace-for-iterative-bc-updates/18300 "2025-10-24T17:31:13Z")

</div>

Hi everyone, I’m fairly new to dolfinx and currently working on an adjoint-based optimization problem where I try to estimate an unknown inflow boundary condition. I use a mixed function space on a 2D domain: elem\_u =…

---

## [Svmtk meshing, boundary tagging](https://fenicsproject.discourse.group/t/svmtk-meshing-boundary-tagging/18254)

<div class="topic-metadata">

**Author:** [@Chris\_S](https://fenicsproject.discourse.group/u/Chris_S)\
**Replies:** 3\
**Last updated:** [October 13, 2025, 4:43am UTC](https://fenicsproject.discourse.group/t/svmtk-meshing-boundary-tagging/18254 "2025-10-13T04:43:02Z")

</div>

I am able to generate meshes with svmtk, but I am not understanding how I can define boundary surface tags? I.e. if I have a mesh with subdomains, how do I set the boundary tag to 1 for subdomain A that boarders subdomai…

---

## [Newton Solver Not Converging in FEniCSx for Boussinesq Flow (Transition from FEniCS)](https://fenicsproject.discourse.group/t/newton-solver-not-converging-in-fenicsx-for-boussinesq-flow-transition-from-fenics/16881)

<div class="topic-metadata">

**Author:** [@Nurshat](https://fenicsproject.discourse.group/u/Nurshat)\
**Replies:** 1\
**Last updated:** [October 1, 2025, 10:53pm UTC](https://fenicsproject.discourse.group/t/newton-solver-not-converging-in-fenicsx-for-boussinesq-flow-transition-from-fenics/16881 "2025-10-01T22:53:49Z")

</div>

Hi everyone, I implemented a FEniCS code for Boussinesq flow using mixed elements (\[P2, P1, P1\]), and it worked well. However, after transitioning to FEniCSx, the nonlinear Newton solver fails to converge, with the resi…

---

## [Dirichletbc incompatible arguments: needs a float32 functionspace?](https://fenicsproject.discourse.group/t/dirichletbc-incompatible-arguments-needs-a-float32-functionspace/18077)

<div class="topic-metadata">

**Author:** [@AnfoDao](https://fenicsproject.discourse.group/u/AnfoDao)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 2:17pm UTC](https://fenicsproject.discourse.group/t/dirichletbc-incompatible-arguments-needs-a-float32-functionspace/18077 "2025-08-06T14:17:55Z")

</div>

Hi there, I have been trying to move my fenics code to dolfinx, but have run into an issue with my Dirichlet boundary conditions. Looking at the documentation, the arguments and process have changed, but I’m not sure ho…

---

## [Error when trying to implement continuation method to run fluid flow problem at higher Reynolds numbers](https://fenicsproject.discourse.group/t/error-when-trying-to-implement-continuation-method-to-run-fluid-flow-problem-at-higher-reynolds-numbers/18048)

<div class="topic-metadata">

**Author:** [@alex24](https://fenicsproject.discourse.group/u/alex24)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 12:59am UTC](https://fenicsproject.discourse.group/t/error-when-trying-to-implement-continuation-method-to-run-fluid-flow-problem-at-higher-reynolds-numbers/18048 "2025-08-05T00:59:30Z")

</div>

Hi, I am trying to implement the method called ‘continuation’ discussed below, using a previous solution at some viscosity, to get a solution for a lower viscosity, by using the higher viscosity solution as an initial g…

---

## [How to apply bc constraint to a point in serendipity functionspace (re-post)](https://fenicsproject.discourse.group/t/how-to-apply-bc-constraint-to-a-point-in-serendipity-functionspace-re-post/18056)

<div class="topic-metadata">

**Author:** [@Libinatos](https://fenicsproject.discourse.group/u/Libinatos)\
**Replies:** 1\
**Last updated:** [August 2, 2025, 9:00am UTC](https://fenicsproject.discourse.group/t/how-to-apply-bc-constraint-to-a-point-in-serendipity-functionspace-re-post/18056 "2025-08-02T09:00:24Z")

</div>

I posted this topic minutes ago but accidentally deleted it after I found the solution, and found that I cannot edit it any more. So I will record the original question and my solution in this new topic. Original proble…

---

## [Boundary conditions for coupling non-linear ODEs](https://fenicsproject.discourse.group/t/boundary-conditions-for-coupling-non-linear-odes/18007)

<div class="topic-metadata">

**Author:** [@Longxing](https://fenicsproject.discourse.group/u/Longxing)\
**Replies:** 1\
**Last updated:** [July 30, 2025, 11:14am UTC](https://fenicsproject.discourse.group/t/boundary-conditions-for-coupling-non-linear-odes/18007 "2025-07-30T11:14:13Z")

</div>

Hello everyone, I have two equations (for testing simple examples): u1'=0, u2'=0. The boundary condition is u1…

---

## [Mixed elements crashes with apply\_lifting (Bus Error)](https://fenicsproject.discourse.group/t/mixed-elements-crashes-with-apply-lifting-bus-error/18027)

<div class="topic-metadata">

**Author:** [@a-lyrae](https://fenicsproject.discourse.group/u/a-lyrae)\
**Replies:** 1\
**Last updated:** [July 30, 2025, 10:04am UTC](https://fenicsproject.discourse.group/t/mixed-elements-crashes-with-apply-lifting-bus-error/18027 "2025-07-30T10:04:25Z")

</div>

Hello, I’m solving a EHD problem where I need to solve two nonlinear equations simultaneously. For that, I implemented the problem by using mixed elements and needed to write a custom nonlinear solver. This crashes as s…

---

## [Bogner-Fox-Schmit (BFS) Element](https://fenicsproject.discourse.group/t/bogner-fox-schmit-bfs-element/18034)

<div class="topic-metadata">

**Author:** [@Mahdi\_Roshani](https://fenicsproject.discourse.group/u/Mahdi_Roshani)\
**Replies:** 0\
**Last updated:** [July 29, 2025, 9:32am UTC](https://fenicsproject.discourse.group/t/bogner-fox-schmit-bfs-element/18034 "2025-07-29T09:32:26Z")

</div>

I am attempting to simulate the deformation of a 2D plate using the Kirchhoff–Love plate or Föppl–von Kármán equations, with zero displacement and rotation as boundary conditions. As far as I understand, I should impleme…

---

## [Mesh.locate\_entities\_boundary() does not seem to work if importing mesh nodes and cells](https://fenicsproject.discourse.group/t/mesh-locate-entities-boundary-does-not-seem-to-work-if-importing-mesh-nodes-and-cells/17976)

<div class="topic-metadata">

**Author:** [@alex24](https://fenicsproject.discourse.group/u/alex24)\
**Replies:** 3\
**Last updated:** [July 14, 2025, 6:13pm UTC](https://fenicsproject.discourse.group/t/mesh-locate-entities-boundary-does-not-seem-to-work-if-importing-mesh-nodes-and-cells/17976 "2025-07-14T18:13:13Z")

</div>

Hi, When I generate a mesh using dolfinx, I can do the following and it generates the right boundary condition: # Function to mark noslip bc def noslip\_boundary2(x): return np.isclose(x\[2\], z\_val) # No slip bounda…

---

## [Dirichlet Boundary Conditions Involving Extant UFL Functions](https://fenicsproject.discourse.group/t/dirichlet-boundary-conditions-involving-extant-ufl-functions/17931)

<div class="topic-metadata">

**Author:** [@zaccandels](https://fenicsproject.discourse.group/u/zaccandels)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 9:38am UTC](https://fenicsproject.discourse.group/t/dirichlet-boundary-conditions-involving-extant-ufl-functions/17931 "2025-07-10T09:38:09Z")

</div>

Hi everyone, I’m using FEniCS 2019.1.0 to solve the lattice Boltzmann equations - that is \\frac{\\partial f\_i}{\\partial\_t} + \\mathbf{c}\_i \\cdot \\nabla f\_i = j\_i(f\_1,...,f\_m) + F\_i(f\_1,...,f\_m) on the domain \\Omega =…

---

## [Mixing dolfinx\_mpc and scifem packages for a nonlinear problem](https://fenicsproject.discourse.group/t/mixing-dolfinx-mpc-and-scifem-packages-for-a-nonlinear-problem/17899)

<div class="topic-metadata">

**Author:** [@Ergonsa](https://fenicsproject.discourse.group/u/Ergonsa)\
**Replies:** 2\
**Last updated:** [July 8, 2025, 6:20pm UTC](https://fenicsproject.discourse.group/t/mixing-dolfinx-mpc-and-scifem-packages-for-a-nonlinear-problem/17899 "2025-07-08T18:20:41Z")

</div>

Hello everyone, the goal of this post is to ask whether it is possible to use all the different packages together in the same problem. For instance, I am working in a very ambitious project regarding homogenisation of m…

---

## [Anomalous fluctuations near Periodic Boundaries with dolfinx\_mpc](https://fenicsproject.discourse.group/t/anomalous-fluctuations-near-periodic-boundaries-with-dolfinx-mpc/17916)

<div class="topic-metadata">

**Author:** [@tweng](https://fenicsproject.discourse.group/u/tweng)\
**Replies:** 0\
**Last updated:** [July 7, 2025, 7:35pm UTC](https://fenicsproject.discourse.group/t/anomalous-fluctuations-near-periodic-boundaries-with-dolfinx-mpc/17916 "2025-07-07T19:35:33Z")

</div>

Hi Community, I’m working on a problem with periodic boundary conditions, using DOLFINx\_mpc, it seems to me that the periodic boundary conditions are having some troubles to be imposed. The original problem is a non-li…

---

## [How to create subdomains(boundaries) of polygonal meshes, and how to assign arrays of values to a boundary?](https://fenicsproject.discourse.group/t/how-to-create-subdomains-boundaries-of-polygonal-meshes-and-how-to-assign-arrays-of-values-to-a-boundary/17893)

<div class="topic-metadata">

**Author:** [@fea](https://fenicsproject.discourse.group/u/fea)\
**Replies:** 1\
**Last updated:** [July 7, 2025, 3:09am UTC](https://fenicsproject.discourse.group/t/how-to-create-subdomains-boundaries-of-polygonal-meshes-and-how-to-assign-arrays-of-values-to-a-boundary/17893 "2025-07-07T03:09:52Z")

</div>

I have 2 questions which arise from wanting to apply Dirichlet boundary conditions to a L-shaped polygon like the one below where it can be seen that the boundary values are 0 everywhere except for the left side of t…

---

## [Solving 1D nonlinear mixed domain coupled PDE with MixedFunctionSpace API](https://fenicsproject.discourse.group/t/solving-1d-nonlinear-mixed-domain-coupled-pde-with-mixedfunctionspace-api/17874)

<div class="topic-metadata">

**Author:** [@leoc](https://fenicsproject.discourse.group/u/leoc)\
**Replies:** 0\
**Last updated:** [July 2, 2025, 3:42pm UTC](https://fenicsproject.discourse.group/t/solving-1d-nonlinear-mixed-domain-coupled-pde-with-mixedfunctionspace-api/17874 "2025-07-02T15:42:05Z")

</div>

Hello everyone, I am trying to assess the feasibility of implementing a set of coupled PDE to model (in 1 dimension) a solid-state battery based on previous work with a commercial software using dolfinx v0.9.0 and the M…

---

## [Stiffness matrix is singular when including subdomain in elasticity problem](https://fenicsproject.discourse.group/t/stiffness-matrix-is-singular-when-including-subdomain-in-elasticity-problem/17838)

<div class="topic-metadata">

**Author:** [@Veins666](https://fenicsproject.discourse.group/u/Veins666)\
**Replies:** 1\
**Last updated:** [June 25, 2025, 3:49pm UTC](https://fenicsproject.discourse.group/t/stiffness-matrix-is-singular-when-including-subdomain-in-elasticity-problem/17838 "2025-06-25T15:49:36Z")

</div>

Hello everyone, I’m solving a linear elasticity problem on a mesh with three different material subdomains, each marked using a MeshTags object with values 1,2,3. I define a measure dx and then I define the total biline…

---

## [Mixed boundary conditions silently violated](https://fenicsproject.discourse.group/t/mixed-boundary-conditions-silently-violated/17749)

<div class="topic-metadata">

**Author:** [@dkdyn](https://fenicsproject.discourse.group/u/dkdyn)\
**Replies:** 1\
**Last updated:** [June 24, 2025, 8:01am UTC](https://fenicsproject.discourse.group/t/mixed-boundary-conditions-silently-violated/17749 "2025-06-24T08:01:48Z")

</div>

I am using DOLFINx v0.9.0 to solve the basic one-dimensional wave equation by space-time FEM (formulated as first-order system). My script runs without warnings or error messages, the results look qualitatively good, but…

---

## [Compute reaction forces for a dynamic case](https://fenicsproject.discourse.group/t/compute-reaction-forces-for-a-dynamic-case/17828)

<div class="topic-metadata">

**Author:** [@umarkhayaz](https://fenicsproject.discourse.group/u/umarkhayaz)\
**Replies:** 0\
**Last updated:** [June 23, 2025, 11:39pm UTC](https://fenicsproject.discourse.group/t/compute-reaction-forces-for-a-dynamic-case/17828 "2025-06-23T23:39:12Z")

</div>

Hi, I’m working on a dynamic fracture simulation in legacy DOLFINx, where I’ve implemented the HHT-α time‐integration scheme (see the elastodynamics demo, implemented before here: https://comet-fenics.readthedocs.io/en/…

---

## [Help with 1D Burger's Equation](https://fenicsproject.discourse.group/t/help-with-1d-burgers-equation/17816)

<div class="topic-metadata">

**Author:** [@BRS](https://fenicsproject.discourse.group/u/BRS)\
**Replies:** 2\
**Last updated:** [June 22, 2025, 8:11pm UTC](https://fenicsproject.discourse.group/t/help-with-1d-burgers-equation/17816 "2025-06-22T20:11:51Z")

</div>

Hi everyone, I’m working on a final project for my Finite Element Analysis course, and I need help setting up a time-dependent 1D Burgers’ equation using FEniCSx with linear Lagrange elements and backward Euler time ste…

---

## [Issue when applying MPC and dirichletbc to the same dofs](https://fenicsproject.discourse.group/t/issue-when-applying-mpc-and-dirichletbc-to-the-same-dofs/17757)

<div class="topic-metadata">

**Author:** [@Libinatos](https://fenicsproject.discourse.group/u/Libinatos)\
**Replies:** 2\
**Last updated:** [June 16, 2025, 3:33pm UTC](https://fenicsproject.discourse.group/t/issue-when-applying-mpc-and-dirichletbc-to-the-same-dofs/17757 "2025-06-16T15:33:29Z")

</div>

Hello, I am dealing with a problem where mpc and dirichletbc need to be applied to the same dofs. When I searched related posts, I found a post which made me confused: If my understanding is correct, after computing…

---

## [How can we implement Brazilian split tensile test?](https://fenicsproject.discourse.group/t/how-can-we-implement-brazilian-split-tensile-test/17770)

<div class="topic-metadata">

**Author:** [@A\_V](https://fenicsproject.discourse.group/u/A_V)\
**Replies:** 0\
**Last updated:** [June 16, 2025, 2:26pm UTC](https://fenicsproject.discourse.group/t/how-can-we-implement-brazilian-split-tensile-test/17770 "2025-06-16T14:26:57Z")

</div>

Hi, I am trying to code Brazilian split tensile do anyone have the reference code. As I’m facing issue. Phase field value gets very small increment. The code I did was simply took 1mm x 1mm square domain code for tensil…

---

## [Gmsh not recognizing separate surfaces in .stl](https://fenicsproject.discourse.group/t/gmsh-not-recognizing-separate-surfaces-in-stl/17744)

<div class="topic-metadata">

**Author:** [@Gabriella\_Myslo](https://fenicsproject.discourse.group/u/Gabriella_Myslo)\
**Replies:** 2\
**Last updated:** [June 12, 2025, 6:15pm UTC](https://fenicsproject.discourse.group/t/gmsh-not-recognizing-separate-surfaces-in-stl/17744 "2025-06-12T18:15:47Z")

</div>

Hello, I am working on a simulation project where I have been running simulations on a geometry (.msh) provided in the simulation software download package. However, now I would like to import a custom geometry made by …

---

## [How to work with nonconforming meshes?](https://fenicsproject.discourse.group/t/how-to-work-with-nonconforming-meshes/17735)

<div class="topic-metadata">

**Author:** [@Giovanni\_Esposito](https://fenicsproject.discourse.group/u/Giovanni_Esposito)\
**Replies:** 1\
**Last updated:** [June 11, 2025, 3:15pm UTC](https://fenicsproject.discourse.group/t/how-to-work-with-nonconforming-meshes/17735 "2025-06-11T15:15:12Z")

</div>

Hi, I solved a Dirichlet problem associated to a Laplace equation with FEniCSx, in a square. After that, I computed the normal derivatives in the cells of the mesh adjacent to the boundary of the square. Then I want to…

---

## [Optimize an integral form without boundary condition](https://fenicsproject.discourse.group/t/optimize-an-integral-form-without-boundary-condition/17645)

<div class="topic-metadata">

**Author:** [@Ken](https://fenicsproject.discourse.group/u/Ken)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 5:19am UTC](https://fenicsproject.discourse.group/t/optimize-an-integral-form-without-boundary-condition/17645 "2025-05-22T05:19:23Z")

</div>

I’m totally new to FEM and FENICS, and wanting to find a numerical method to optimize a function(s) with an integral form. I have a function (bulk energy density) f depending on a scalar q and a 2nd order tensor Q in 3D…

[Previous page](https://fenicsproject.discourse.group/tag/boundary-conditions/5.md?match_all_tags=true&tags%5B%5D=boundary-conditions)

[Next page](https://fenicsproject.discourse.group/tag/boundary-conditions/5.md?match_all_tags=true&page=2&tags%5B%5D=boundary-conditions)
