On 3/8/23 07:49, Abbas wrote:
>
> I am solving a nonlinear problem with DG and my BCs are in the weak form. It
> would be helpful if I start with a solution vector that is closer to the
> prescribed solution so I won't have to do iterations otherwise would have been
> unnecessary.
> For a purely linear problem, I need to do two non_linear iterations to
> converge instead of 1.
> If I can't use VectorTools::interpolate_boundary_values what are my options?
> Does VectorTools::project_boundary_values work in that case?
No, it also needs to know which DoFs are located on the boundary, but for DG
elements no DoFs are logically on the boundary.
I don't see a good solution to your problem that uses what's already in the
library. I imagine that using code similar to what's in
interpolate_boundary_values() but using a different way of finding out which
DoF's support point is physically (though not logically) located on the
boundary, this all could be implemented in 200 lines of code. But there is
nothing simple the obvious already provides you for this case.