Re: [deal.II] Accessing a particular boundary in one-dimensional case

2020-03-15 Thread Krishnakumar Gopalakrishnan
Have you tried this? I think it should work, but it will be faster for you (and for us) if you just played with stuff and tried whether it actually works :-) - Yay! That actually worked. Thank you all the help. I now have some working code to start with. Regards, Krishna On Fri, 13 Mar 20

Re: [deal.II] Accessing a particular boundary in one-dimensional case

2020-03-13 Thread Wolfgang Bangerth
On 3/13/20 5:34 PM, Krishnakumar Gopalakrishnan wrote: Looking at step-7 and adapting it a little bit, does the following code look reasonable to mark the boundary ID of the left edge as '1' for later setting its flux? for (const auto &cell : triangulation.cell_iterators

[deal.II] Accessing a particular boundary in one-dimensional case

2020-03-13 Thread Krishnakumar Gopalakrishnan
For a one-dimensional unit domain (0,1), if one needs to set non-homogenous Neumann BC at a particular end of the domain (say the left end, x=0), Looking at step-7 and adapting it a little bit, does the following code look reasonable to mark the boundary ID of the left edge as '1' for later set