Comments (2)
Hi @jorgensd @johannesring @dbruneau-mie
I was investigating the error and found something we could try. It might not work, but I thought itβs worth mentioning here.
So the error message we get is
Error: Unable to solve linear system using PETSc Krylov solver.
Reason: Solution failed to converge in 0 iterations (PETSc reason DIVERGED_PC_FAILED, residual norm ||r|| = 0.000000e+00).
Where: This error was encountered inside PETScKrylovSolver.cpp.
where we use mumps
as linear solver.
What I found online is
PETSc reason DIVERGED_PC_FAILED, residual norm ||r|| = 0.000000e+00
They are caused by MUMPS and the best chance to avoid them is to set the MOD class keyword argument serial_ordering to True or slightly change the number of mpirun processes for the simulation of a specific setup.
from https://custem.readthedocs.io/en/latest/tipsandtricks.html
Looking at their source code, I figure out that by setting serial_ordering
to True in their class means
- serial_ordering = False, type bool
use serial ordering of *METIS* instead parallel ordering of
*SCOTCH*; leads to slight increase of solution time for *MUMPS*
but significantly reduces chance of potential *MUMPS* crashes
import dolfin as df
if serial_ordering:
df.PETScOptions.set("mat_mumps_icntl_28", 1)
where petsc document says
-mat_mumps_icntl_28 - ICNTL(28): use 1 for sequential analysis and ictnl(7) ordering, or 2 for parallel analysis and ictnl(29) ordering
My guess is that we have to use
parameters["mesh_partitioner"] = "ParMETIS"
and also use PETScOptions
. At the moment, I do not know how to do it immediately because I do not have much experience with petsc but it should not be too hard...
Please let me know if you have any suggestion or comment.
from turtlefsi.
For now, I concluded that adding
PETScOptions.set("mat_mumps_icntl_14", 400) # allocate more memory to mumps
inside newtonsolver.py
may reduce the possibility of the error.
from turtlefsi.
Related Issues (20)
- `setup.py` not working properly HOT 2
- Which boundaries should be chosen to be included in bc_ids[]? HOT 3
- 3D FSI pipe flow problem
- Confirmation of a parameter of a standard case FSI3 HOT 2
- Adding multi-solid regions HOT 2
- Fix 1st lame coefficient in `TF_fsi`
- Fix drag and lift computations in TF problem HOT 2
- time loop conditional in `monolithic.py` HOT 4
- Replace `gravity` with `body force`
- some functions can not be found in this version of fenics in turtlefsi HOT 17
- xdmf file not correct when using `save_deg=2` and restart with different mesh patition HOT 3
- `merge_xml_files` does not work above python3.9 HOT 4
- Update documentation
- Update pytest
- A question about CSM case HOT 2
- Some questions in the solid.py HOT 11
- Found no facets matching domain for boundary condition.(TF_csm) HOT 6
- Definitions of some quantities inside newtonsolver HOT 4
- Error in visualization of results in paraview (TF_fsi) HOT 11
- Pressure should not be part of save_deg >1 ? HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turtlefsi.