Hi all,
I have a question in the lecture 31.65 that is about Picard iteration.
In the lecture, the professor doesn't include system_matrix.reinit
(sparsity_pattern), system_rhs.reinit (dof_handler.n_dofs()), and
solution.reinit (dof_handler.n_dofs()) in assemble_system().
However, I was worried that these three values might not be substituted
with new values(after every iteration).
So I added these three reinit in assemble_system().
The two results are a little bit different as expected.
When 3 reinit are not added...
Number of active cells: 5120
Number of degrees of freedom: 20609
iteration 0
||u_{k}-u_{k-1}||42.5271
iteration 1
||u_{k}-u_{k-1}||1.45458
iteration 2
||u_{k}-u_{k-1}||0.899201
iteration 3
||u_{k}-u_{k-1}||0.646361
iteration 4
||u_{k}-u_{k-1}||0.499998
iteration 5
||u_{k}-u_{k-1}||0.404479
iteration 6
||u_{k}-u_{k-1}||0.33739
iteration 7
||u_{k}-u_{k-1}||0.287838
iteration 8
||u_{k}-u_{k-1}||0.249859
iteration 9
||u_{k}-u_{k-1}||0.219908
When added...
Number of active cells: 5120
Number of degrees of freedom: 20609
iteration 0
||u_{k}-u_{k-1}||42.5271
iteration 1
||u_{k}-u_{k-1}||5.2969
iteration 2
||u_{k}-u_{k-1}||2.49065
iteration 3
||u_{k}-u_{k-1}||1.45435
iteration 4
||u_{k}-u_{k-1}||0.947504
iteration 5
||u_{k}-u_{k-1}||0.66352
iteration 6
||u_{k}-u_{k-1}||0.490408
iteration 7
||u_{k}-u_{k-1}||0.378107
iteration 8
||u_{k}-u_{k-1}||0.301494
iteration 9
||u_{k}-u_{k-1}||0.246974
I'm confused that the error increases rather, as you can see.
I don't know what makes this difference and which one is right.
Thank you
Kyusik.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.