I want to chage the value of relaxation parameter in custom newton solver with dirichlet bc (equivalent to dolfinx.nls.petsc.NewtonSolver.relaxation_parameter)
Is this possible?
Simply set a relaxation parameter in the update:
# Update u_{i+1} = u_i + delta u_i
uh.x.array[:] += du.x.array
i += 1
i.e.
# Update u_{i+1} = u_i + alpha*delta u_i
uh.x.array[:] += alpha*du.x.array
i += 1
1 Like
Thank you for your reply.
I got it.