VTK Export during nonlinear itterations possible

Numerical methods and mathematical models of Elmer
Post Reply
carstenp
Posts: 37
Joined: 17 Oct 2012, 23:17
Antispam: Yes

VTK Export during nonlinear itterations possible

Post by carstenp »

Hello everyone,

I would like to export solutions during the nonlinear iteration process to visualize how the solution converges. Is that possible? To interrupt for instance the Whitney AV Solver every 500 steps and export a vtk file and then resume the original solver.

carsten
raback
Site Admin
Posts: 4868
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: VTK Export during nonlinear itterations possible

Post by raback »

Hi

Perhaps you mean convergence of linear system. The nonlinear system is seldom solved for >500 times.

You cannot call solvers from other solvers. Instead you could limit the linear iterations to 500 and set "Linear System Abort Not Converged = False" and use a number of steady state iterations. Then you would solve 500 steps for linear system and save the results in vtu format by ResultOutputSolver, for example.

For BiCGStabl the things should work in rather similar way, but some linear solvers as gcr where you built a cumulative space are then of course restarted. On the other hand, 500 gcr iterations without restart is quite a lot anyway.

-Peter
carstenp
Posts: 37
Joined: 17 Oct 2012, 23:17
Antispam: Yes

Re: VTK Export during nonlinear itterations possible

Post by carstenp »

Hi Peter,
sorry, yes I meant the linear iterations. I will try your solution.

Thank you very much!

carsten
Post Reply