[deal.II] Re: Boundary conditions besides Dirichlet BC for Multigrid

2022-12-20 Thread 'yy.wayne' via deal.II User Group
An alternative choice is applying the boundary conditions weakly(during assemble). Will weakly implemented boundary condition behaves worse than explicitly through AffineConstraint class, when it's not Dirichlet BC? 在2022年12月21日星期三 UTC+8 09:44:42 写道: > Hi guys, I have a question on setting the

[deal.II] Boundary conditions besides Dirichlet BC for Multigrid

2022-12-20 Thread 'yy.wayne' via deal.II User Group
Hi guys, I have a question on setting the boundary constraints for mg_constrained_dofs object. In many problems where the only boundary conditions(for AffineConstraints) are Dirichlet BC and hanging nodes, mg_constrained knows them by MGConstrainedDoFs::make_zero_boundary_constraints(the

[deal.II] Re: Boundary conditions besides Dirichlet BC for Multigrid

2022-12-20 Thread Peter Munch
Hi Wayne, you can attache your own constraints as shown here: https://github.com/dealii/dealii/blob/2376c62a4b89953b74801852983eb8556930d54d/tests/numerics/no_flux_18.cc#L1136-L1146 Hope this helps! Peter On Wednesday, 21 December 2022 at 02:44:42 UTC+1 yy.wayne wrote: > Hi guys, I have a

[deal.II] Re: Boundary conditions besides Dirichlet BC for Multigrid

2022-12-20 Thread 'yy.wayne' via deal.II User Group
Wow that's wonderful. Thank you Peter. You save me all the time. 在2022年12月21日星期三 UTC+8 15:37:12 写道: > Hi Wayne, > > you can attache your own constraints as shown here: > https://github.com/dealii/dealii/blob/2376c62a4b89953b74801852983eb8556930d54d/tests/numerics/no_flux_18.cc#L1136-L1146 > >