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

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

  • 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.
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?
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)
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))?
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()
"ufl.log.UFLException: Invalid cell 1.0"
Initial condition and desired solution in Opt control of heat eq
How to find border markings
Plasticity in fenics
Inflow and Outflow
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?
Mixed Elements MeshConnectivity in python
Solution operation fails to update
From vector to fenics solution
How to run poisson extended
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?
CSG Geometry problem
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)
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
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
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?
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
Non integer power doesn't work
How to handle Nonlinear PDE with Division and Exponent?
Natural frequencies and mode shapes using SLEPcEigenSolver
Why is the solution a scalar function, when it's defined on a VectorFunctionSpace?
Incorrect result for assembly over boundary part
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
Error while solving pde in 3d
Fenics for parabolic PDE
ValueError: too many values to unpack (expected 2) in solver part
Defining weighted averages
Error in ploting
Heat equation with temperature-dependent source terms
Exception: Expecting scalar
Plot output results axis
Error while executing reaction system
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

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