Read before posting: How do I get my question answered?

Here are a few tips to help get your question answered:

  • Write your message in English.
  • Phrase the title of your post as a question and make it meaningful.
  • Check that your question hasn’t been asked before using the search functionality.
  • Post a “minimum working code example” (MWE) to illustrate the problem:
    A MWE is the simplest piece of code that reproduces or explains the problem you have.
    It must be possible to take the MWE, paste it into a file and run it, without any extra modifications. Good MWEs can be as little as 10 lines of code. If you can remove a line of code from your MWE and still show your problem, then you don’t have an MWE!
  • Do not post lengthy application code!
  • Post the full error message created by your MWE.
  • Report the version of FEniCS you are using, how you installed it (Docker, conda-forge, hashdist, manual source install etc.), and the platform.
  • Use code formatting and math typesetting where possible.
  • Did you end up solving your own query? Great! Please, do not delete the post and do not edit it to read “post deleted by the author” (or similar sentence). Instead, answer your own question, so that future users looking for a similar problem through the search functionality can find it.
15 Likes
Demo code not working using my installation of FEniCS
Using mshr to draw geometry and generate the mesh
Solution not being updated at solving Picard iteration of coupled problem (Question changed)
Problem with Mixed-dimensional branch - Error: Unable to evaluate function at point
Error in program or computer properties
FeniCS Parallel output two copies of solutions?
CSG Geometry problem
Solution operation fails to update
Compute a boundary flux after solving the PDE
2D simply supported beam boundary conditions
Import from gmsh and define boundary conditions
Scalar wrapping of pressure for stokes problem
Pyadjoint crash when using project function
Interpolation in mixed formulation
From the electric field between two conductors: the resulting total force
What is the variational form for a transient heat equation with Dirichlet, Neumann, and Robin boundary conditions?
How to get a inner product with tensors?
Source function resolving poisson's equation
How I can plot eigenvectors as a function of two dimension (x,y))?
How to change the value of a parameter in weak form during time iteration
Time dependent non linear variational problem
Convergence of Stokes with data from velocity of Navier-Stokes
Solve Poisson equation with non-linear boundary conditions on a submesh
Finding H1 error for time dependent non linear pde
RuntimeError for coupled PDEs : how to formulate the variational problem for coupled PDEs?
Estimation of parameters in a PDE using Dolphin-Adjoint
Linear elasticity- boundary conditions
I don't see the boundary conditions in time
Questions regarding output of compute_gradient()
Applying periodic boundary condition in FEniCSx
"ufl.log.UFLException: Invalid cell 1.0"
Initial condition and desired solution in Opt control of heat eq
How to interpolate solution obtained from 1D mesh to Vector function space on 2D mesh
Hi, can you help me please
How to find border markings
Plasticity in fenics
Inflow and Outflow
Error : ArityMismatch: Applying nonlinear operator Abs
How to apply boundary condition like this
Converter from GMSH to XDMF (with physical groups)
How to define a Function in a submesh based on function values present in an adjoining submesh?
Gcc@=11.4.0' does not have a Fortran 90 compiler configured
Mixed Elements MeshConnectivity in python
From vector to fenics solution
How to run poisson extended
The kernel appears to have died. It will restart automatically
Reaction-diffusion equation pollutes domain with extremely small solution
Assign() cannot be recognized in dolfin_adjoint
What is the reason for nonconvergence of newton solver?
Triying to solve the Advection Diffusion I get AssertionError: assert expr._ufl_is_terminal_modifier_
How tom import 3d domain to fenics
Using the solution of Stokes (mixed elements) as initial condition for Chorin (not mixed)
Equivalent for Expression in dolfinx
Problem with creating vector with scalar function components
Time depended Neumann boundary
'<' not supported between instances of 'Mesh' and 'Mesh'
ValueError: too many values to unpack
I am facing a problem with the MixedFunctionSpace. Do you have any idea how I can fix it?
Using Project() with interpolated function
Newton Solver did not converge phase field model
What is wrong with this plot?
How to get stress field of a subdomain created by MeshView?
Problem with "Did you combine test or trial functions from different spaces?"
Different results when using interpolate, project and expression
Set domain length as a variable
2D Axisymmetric Navier Stokes
Coupled problem using Mixed Finite Element
[Leopart,Geopart] Extend Stokes to Brinkman model using HDG
The Solution computed is not periodic despite the implementation of periodic boundary conditions
Code that solves time independent Schroedinger equation for two-dimensional harmonic oscillator
Porject_axisymm
How to Get Drag and Lift Coefficients for Flow Around a Cylinder
Linear elasticity with locally varying constant eigenstrain
Tube: compare 3D solution with 2D P/S
Heat Equation with Varying Kappa
How to fix the error "'expr' object has no attribute 'mesh'"?
Converting a set of functions to a class
Fenics_code for reaction diffusion equation
Get vorticity from velocity
Define a boundary for DG elements
Problem with inf
'<' not supported between instances of 'Mesh' and 'Mesh' Error
Solution to PDE is rubbish, shouldn't it be easy?
I have a square plate and I want to impose a gaussian random traction
Incorrect mesh ghost mode "none" (expected "shared_vertex" or "shared_facet" for interior facet integrals in parallel)
How to save solution in .txt format?
Toddler in Fenics
Discontinuous type Argument must be restricted
Integration over a mesh
Is there any analog of FacetArea in dolfinx?
How to set the pressure boundary condition?
Non integer power doesn't work
How to handle Nonlinear PDE with Division and Exponent?
Natural frequencies and mode shapes using SLEPcEigenSolver
Plotting reaction forces on a mesh
DG fem for 1D advection equation
Why is the solution a scalar function, when it's defined on a VectorFunctionSpace?
Incorrect result for assembly over boundary part
DG fem for 1D advection equation - TypeError with dolfin-dg
How to calculate eigenvalues and eigenvectors of the strain tensor in case 3D?
How can I define a vector function?
Debugging Numerical ice sheet modelling using FEniCS
Different solution with different Finite Elements (Linear - Quadratic)
Access to tensor components
ufl.log.UFLException: Cannot determine geometric dimension from expression
Multi-conditional judgement
Time dependent Neumann BC leads to Calling FFC just-in-time (JIT) compiler at every timestep
How to Read data from an xdmf file
Error with index -1 is out of bounds for axis 0 with size 0
TypeError: Division.__float__ returned non-float (type NotImplementedType)
Error while solving pde in 3d
Writing deformation / gradient in paraview
Fenics for parabolic PDE
ValueError: too many values to unpack (expected 2) in solver part
Defining weighted averages
Setting neumann and dirichlet boundary conditions in 2D with assemble vector
Find error H10. Pls help me find H10 in that problem
DOLFIN encountered an error. If you are not able to resolve this issue
Slow Newton convergence using dolfinx_materials
I need help solving this problem using FEniCS
i have problem with pycharm community fenics not working
BC for Blockmatrix in time-loop
Multiple dof_to_vertex_map in parallel
How to access neighbor nodes and elements (fenicsx)
Calculation result discrepancy
Syntax problem in printing RHS of variational formulation
Newbie trying to solve a 3D moving heat source problem with crank-Nicholson for a month
Runtime Error, fenics.2019.**. How can I solve this problem?
Solving a no linear equation of the Spalart-Allmaras model
Set Expression values according to gmsh physical regions
I getting an typeerror of 'unsupported operand type(s) for *: 'function' and 'function' '
Thermal conduction boundary problems
Coefficient is custmized for each cell in the weak formulation, pointwise expression on each cell
Probleme in the couplage openFoam FEniCS
Planar Poiseuille flow of stokes equation
Need help in defining exact solution in polar coordinates
Generating mesh and applying bc for 3D linear elasticity problem using known nodes and tetrahedron connectivity
The values in 1D apply to the boundaries of 2D
Failed to successfully call PETSc function 'KSPSolve'. PETSc error code is: 73, Object is in wrong state
Help with formulating Boundary condition
Question about Quadrature elements and their integration into variational forms
Difference between split() and sub() in mixed formulation
Questions about stress strain calculation
Defining subdomains for different materials, but with coefficients that aren't constant
How can you assemble matrix once, and apply for different boundary conditions to have an efficent ensemble simulation
PETSc error code is: 76 while computing Gradient
How to integrated over domain
Mesh size large the results is incorrect, while the size small, the results is nan
How to combine two grids into a single grid
Newton and script dependant Neumann Boundary condition
Component wise multiplication of two vector valued functions
Correct implementation of AllenCahn
Define measure on a marked subdomain in dolfinx incorrectly
Dirichlet Boundary Conditions
Interface continuity conditions in heat transfer problems
Handling Function returns from variational equations
Simple diffusion problem with a growing electrode
Evaluating at arbitrary points
Derivative of Augmented Lagrangian term
Problem with coupling non linear PDE
Facing problem in plotting u^2 vs dt
Accessing entries of Global size matrix
How to create an inhomogeneous 2D mesh about a diffusion process?
Create and assemble form into scalar in DOLFINX
Error with my code
Install dolfinx_materials on Colab
Steady-heat conduction problems
Parallel error when generating mesh
How Do I Resolve Installation Failures?
Please i need assistance on how to resolve the PETScKrylovSolver's Error below
Copy a numpy matrix into a fencis function
Failed to split a vector
Setting up mixed boundary conditions
Discontinuous type Coefficient must be restricted type error
How to L2 projection of the trial function on a coarser mesh then map back to finer mesh
Problem with Projection
Imposing reflective boundary conditions in the Linear Euler equations
Saving values in a VectorFunctionSpace function
How to apply pressure drop boundary conditions in Stokes flow?
Issues with vector interpolation in Navier-Stokes equations comprenssible flow
Navier-Stokes equations with a couple velocity-pressure scheme
Need help in defining polar solution in FeniCS
Reading msh.file
Thermal Calculation Tool trouble
How can I resolve a matrix error when converting a 3D GMSH mesh to a 2D mesh and exporting it from .msh to .xdmf format?
Error in ploting
Heat equation with temperature-dependent source terms
Help Needed: Correctly Imposing Dirichlet Boundary Conditions with GMSH and Meshio in FEniCSx
Exception: Expecting scalar
Plot output results axis
Error while executing reaction system
Traction Boundary Conditions in 2D Mechanics Problems
Runtime error while executing dirichlet BC
Efficient way for using ANN as the constitutive law
Integrate on a subdomain error: missing an integration domain
Field value dependent boundary condition with mpi
Issue with scaling up the simulation while running in parallel
Conversion from array to PETSc and from PETSc to array
Code not running in parallel
Time out of the Solver
Just in time compilation error
Heterogeneous elastic properties
Make .exe file that can run on windows?
How to fix this error (error in dolfin)

The following is a list of well constructed questions adhering to the guidelines above:

  1. Getting cell dofs for vector valued function space in dolfinx
  2. Problem with 3D nedelec element
  3. What is the “default” linear solver/preconditioner?
  4. Setting Dirichlet boundary condition/constraint on 3D edges
1 Like