Something like this doesn't work with DG. Loosely speaking, my initial approach would be to solve a system with just the BC terms but I am not sure. Do I have other options?
Wolfgang Bangerth
unread,
Dec 3, 2022, 10:56:11 AM12/3/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dea...@googlegroups.com
On 12/3/22 07:11, Abbas wrote:
>
> Something like this doesn't work with DG.
> Loosely speaking, my initial approach would be to solve a system with just the
> BC terms but I am not sure. Do I have other options?
In DG methods, you impose boundary values weakly, using the same strategy with
which you impose continuity between cells weakly. You might want to look at
papers on DG methods: pretty much every single one will show the jump terms
corresponding to Dirichlet boundary values.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dea...@googlegroups.com
I would consider the boundary conditions part of the nonlinear
iteration (in contrast to step-15, where they are strongly enforced
and as such are only needed in step 0). Every step you can evaluate
your nonlinear residual which contains a residual in the boundary
condition and that difference needs to be applied in every step
(assuming you solve for an update in each Newton step).
On Sat, Dec 3, 2022 at 10:56 AM Wolfgang Bangerth
<bang...@colostate.edu> wrote:
>
> On 12/3/22 07: 11, Abbas wrote: > > Something like this doesn't work with DG. > Loosely speaking, my initial approach would be to solve a system with just the > BC terms but I am not sure. Do I have other options? In DG methods,
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> Use caution when opening links or attachments if you do not recognize the sender.
>
> ZjQcmQRYFpfptBannerEnd
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Thank you Profs.
Prof. Bangerth, I probably wasn't clear in my question. I know how to apply BCs for an interior penalty problem weakly.
But, for a non-linear problem like step 15, one initialises the solution vector and sets it to the value of the BCs at the boundary before solving for the Newton update. This is done explicitly in function 'set_boundary_values()' in step 15 with the function 'VectorTools::interpolate_boundary_values'.
I cannot use this function with DG elements apparently and I am wondering if there are any alternatives.
Prof. Hiester, don't you think that subtracting small and manipulating large numbers in the residual will cause some problems? I'll give it a try for sure though.
Thanks again
Wolfgang Bangerth
unread,
Dec 6, 2022, 10:01:54 AM12/6/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dea...@googlegroups.com
On 12/5/22 07:21, Abbas wrote:
>
>
> Prof. Bangerth, I probably wasn't clear in my question. I know how to apply
> BCs for an interior penalty problem weakly.
> But, for a non-linear problem like step 15, one initialises the solution
> vector and sets it to the value of the BCs at the boundary before solving for
> the Newton update. This is done explicitly in function 'set_boundary_values()'
> in step 15 with the function 'VectorTools::interpolate_boundary_values
> I cannot use this function with DG elements apparently and I am wondering if
> there are any alternatives.
I see now. In that case, like Timo Heister said, the boundary conditions are
part of the weak form of the problem. The weak form is the residual that gives
you the right hand side of the Newton steps, and the derivative of the
residual gives you the Newton matrix. This is definitely the way to go.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu