Page 1 of 1

MgDynPost Convergence History

Posted: 25 Jan 2021, 23:22
by modelman75
The convergence behavior of the MgDynPost solver is a little puzzling. MgHarm converges nicely for the problem run; Then MgDynPost calculates the variables of interest.

The issue here is that the attached "convergence history" plot shows that MgDynPost hasn't converged to the requested 1e-10 tolerance. However, the "solver log" (attached) indicates that the 1e-10 tolerance is satisfied.

Can anyone please comment on this apparent discrepancy?

Re: MgDynPost Convergence History

Posted: 26 Jan 2021, 12:18
by raback
Hi

Yes, that may be confusing. MgDynPost solver computes nodal fields by the Galerkin method which involves solving a simple mass matrix problem with varying r.h.s. vector for different solution vectors. Now this looks on the output as if there where multiple nonlinear iterations while there actually is not. Unfortunately the ElmerGUI analyzes the output and picks the convergence behavior from there which is completely bollocks.

I could try to supress the computation of change so this would not be seen.

Also, I would usually recommend using elemental fields for postprocessing. So for MgDynPost have

Code: Select all

Calculate Nodal Fields = False
Calculate Elemental Fields = True
This will in effect create Discontinuous Galerkin type of fields that do not involve large linear systems. Only local small linear system is solved multiple times, and hence there is no convergence behavior.

Then, in the VTU output you can request

Code: Select all

Discontinuous Bodies = Logical True
which will average the DG fields within bodies but maintain the discontinuous fields only between the different bodies.

You can find example of these settings in test case "mgdyn_steady_wire", for exampe.

-Peter

Re: MgDynPost Convergence History

Posted: 27 Jan 2021, 00:25
by modelman75
Peter, I checked the sif to see if elemental fields were being used for the postprocessing. Although I explicitly deselected "skip elemental fields", and selected "skip nodal fields" in the GUI, the sif file did not reflect those requests.

I have since manually added your suggestions to the sif, and re-ran successfully. Many of the issues that I have encountered involve the GUI lacking options, or selected options not entered into the sif. I have relied too heavily on the GUI. As my familiarity with options improves, I will try to rely more on manual editing.

Once again, thank you for your prompt attention to my questions and your useful suggestions.

Re: MgDynPost Convergence History

Posted: 27 Jan 2021, 00:54
by raback
Hi

The problem with ElmerGUI is that very few people use it for serious business. It is a nice educational tool but when you go beyond that people tend to leave it behind and build their own workflow using various scripts etc. The menus would basically be easy to extend as they are described by XML files but unfortunately they may indeed be lacking some features.

I suggest using the "free text input" field in ElmerGUI for missing keywords. This way the project can be loaded back.

-Peter