Re: [Libmesh-users] Dirichlet constraints in NonlinearImplicitSystem

2021-08-12 Thread John Peterson
On Thu, Aug 12, 2021 at 3:59 PM Renato Poli wrote: > Thanks, > > As I understood, it just works without any major concern in residual and > jacobian calculations, right? > I must add the DirichletBoundary to the system dof_map and LibMesh handles > the matrix and vectors so Petsc will receive the

Re: [Libmesh-users] Dirichlet constraints in NonlinearImplicitSystem

2021-08-12 Thread Renato Poli
Thanks, As I understood, it just works without any major concern in residual and jacobian calculations, right? I must add the DirichletBoundary to the system dof_map and LibMesh handles the matrix and vectors so Petsc will receive the constrained system. Is that correct? Thanks, Renato On Thu, A

Re: [Libmesh-users] Dirichlet constraints in NonlinearImplicitSystem

2021-08-12 Thread Vikram Garg
Hello Renato, I think example 8 in systems_of_equations should be useful in this context. Vikram Garg On Thu, Aug 12, 2021 at 8:48 AM Renato Poli wrote: > Hi all, > > I had no reply on this one, I am struggling with this design. > I could not make this work, should I go f

Re: [Libmesh-users] Dirichlet constraints in NonlinearImplicitSystem

2021-08-12 Thread Renato Poli
Hi all, I had no reply on this one, I am struggling with this design. I could not make this work, should I go for the Penalty method? Renato On Tue, Aug 10, 2021 at 10:49 PM Renato Poli wrote: > Hi, > > In linear systems, I was used to adding dirichlet constraints with > dogmap.add_dirichlet_