[Dune] Help requested for my first test case in non linear mechanics

Christian Engwer christian.engwer at uni-muenster.de
Thu Apr 16 09:53:25 CEST 2020


Hi Thomas,

as you said, it works for a single element, I don't think it is likely that the actual problem arises from wrong boundary conditions, but from something else. Your currently replace your Dirichlet rows with a diagonal 1. Some remarks... What is the size of your other matrix entries? Are they O(1)? Otherwise you might run into issues due to the different entries, or you have to do a full elimination (including columns). You are using a CG solver. That should work, as you are arriving in the right subspaces but your matrix is non-symmetric, so depending on the finite on precision errors, you might still run into trouble. To use a direct divers, you can simply replace the CG with one of our direct solver wrappers. We support SuperLU and UMFPack, e.g. dune/istl/superlu.hh.

Ciao
Christian

Am 15. April 2020 22:37:21 MESZ schrieb HELFER Thomas 202608 <thomas.helfer at cea.fr>:
>Dear Dune users,
>
>I introduced my self by saying that I was interested to evaluate Dune
>for non linear mechanics
>and in particular that I wanted to use MFront behaviours in Dune.
>
>I tried to adapt the poisson-solver example given by O. Sander to the
>description of a simple
>tensile test on a unit cube.
>
>It almost works. I can simulate a tensile test for an elastic behaviour
>and a plastic behaviour.
>I probably can use any smal strain behaviour generated by MFront. The
>non-linearity is treated
>very crudely as we use an Newton algorithm with a fixed number of
>iterations.
>
>The trouble is that it only works if the grid contains only a single
>element. This probably means
>that I made a mistake in the assembly of the stiffness matrix or the
>assembly of the inner
>forces. I reread my code several times without finding the trouble.
>
>Please find enclosed my project, modified to drop the dependency to the
>MGIS library and
>only integrate an isotropic elastic behaviour. The relevant file is
>dune-mgis/src/dune-mgis-tensile-test.cc.
>
>The purpose of my request is twofold:
>
>- I would be grateful if anyone could find what I have done wrong.
>- I would be grateful if anyone could review the code to tell me what
>could be improved.
>
>With kind regards,
>
>Thomas Helfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200416/58eaba3c/attachment.htm>


More information about the Dune mailing list