I am solving the Stokes flow problem in three dimensions using OpenFCST
which is an open-source platform for fuel cell simulations and it is based on
deal.II v8.4.1. The code that I use is mostly based on the code in Step-22,
and I have noticed that my simulations fail when my mesh has more than 20
million DOFs. In order to check if the problem comes from deal.ii and not from
OpenFCST, I did the following:
1. Modified slightly the code in step-22 (see file "step-22.cc" attached) to
consider a domain in 3D that is of size 100x100x50 and it has 50 divisions per
2. Applied the same boundary conditions that are applied in step-22
4. Ran the simulation both in deal.II v8.4.1 and v.9.0.1 with less than 20
million DOFs, and I was able to obtain a solution (see file "DealII_test.png"
5. Ran the simulation in deal.II v8.4.1 -> it resulted in a "Segmentation
fault" error (see file "output_v8_4_1.out").
5. Ran the simulation in deal.II v9.0.1 -> it resulted in a "nan residual"
error (see file "output_v9_0_1.out").
I was wondering if someone could please tell me why this issue is appearing
when I consider a mesh with more than 20 million DOFs, and if there is a
solution to this.
20 million unknowns is quite a large number, especially if you are using the
solver used in step-22. My suspicion is that in both cases, the error message
really just points out that you're run out of memory.
It would be interesting to see how your program's memory use increases as you
go from smaller to large problems. I suspect that you will see that for 20
million unknowns on a single machine, you will need ~100GB of memory and that
that exceeds what the operating system is willing to give you.
20 million unknowns is solidly in the region where you need (i) a parallel
machine, and (ii) a better linear solver than the one used in step-22. Both
exist in deal.II: a better linear solver is discussed in the "Possibilities
for extensions" of step-22, and is implemented in a parallel fashion in
step-32 among others.
Wolfgang Bangerth email: bange...@colostate.edu
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To view this discussion on the web visit