[deal.II] Re: Solving navier stokes equation gives no convergence

2023-01-27 Thread blais...@gmail.com
Can you tell us a bit more about what you have tried? For example, in the 
limit of low Re (say Re=0.1 or Re=1) does your non-linear solver converge? 
Have you tried making a manufactured solution to get your convergence order 
to see if everything is all fine?
RE=200 can be quite heavy for straight-up Newton solver. The linear-search 
generally really helps for cases when you are trying to get a steady-state 
solution.



On Thursday, January 26, 2023 at 11:15:11 a.m. UTC-5 ggg wrote:

> I already solved the stokes equation and was trying to generalize it to 
> solve the steady NS equation.
>
> I saw the step-57 tutorial but I have a mesh from file (while the tutorial 
> create in dealii and refine, things that I'm not allowed to do) and also 
> uses line search algorithm, which also can't perform.
>
> The general structure of the program is: setup vectors, sparsity and 
> matrices (pressure and  velocity), newton iteration where first solve the 
> stokes problem to get the initial guess for newton (Re will always be < 200 
> in my test case, for now), and the start to iterate, at each iteration:
> - assemble the system
> - solve the linearized system
>
> I know the stokes solution is correct. But for the NS solution I have the 
> residual decreasing at first 2 steps and then increasing, leading to 
> divergence (around step 16 dealii fires the no convergence). The assembly 
> is the same as the tutorial at step-57.
>
> It's becoming really frustrating, so if anyone can help I really 
> appreciate. I give you the code in case my explanation wasn't clear.
>
>
> https://drive.google.com/drive/folders/1igXMgWq2g6UPRxaRE9Ot1jU5L_eUW9Wk?usp=sharing
>
> PS: the mesh is fine since already used for previous problems.
>
>
>
>
>
>
>

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/bc4cde03-55a1-45e6-bb1a-e9cff425585en%40googlegroups.com.


[deal.II] Re: some problems about step37

2023-01-27 Thread Peter Munch
In this tutorial, multigrid is using Chebysev sweeps around a point Jacobi 
solver as smoother. Latter needs the (inverse) of the diagonal.

Hope this helps.
Peter

On Friday, January 27, 2023 at 11:07:21 AM UTC+1 13274...@163.com wrote:

> hello everyone! 
> I am learning about the step37 and want to use matrix free methods in my 
> program. Now I am confused about the two functions` use. compute_diagonal 
> and local_compute_diagnol. I am confused why we need to compute the 
> elements on diagnol. thanks for your reply! 
>
>
>

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/edfcb66b-a851-439c-8c70-62b69c317d2en%40googlegroups.com.