Re: [deal.II] Problem about cell iterator

2021-11-23 Thread Toddy Liu
Dear Jean, I followed your suggestions and used the first method (triangulation iterator outside of loop and two dofhandler iterators inside of loop). After making sure of this, I managed to fix several other bugs and finally the code works well. And the results are nearly the same as the

Re: [deal.II] Problem about cell iterator

2021-11-23 Thread Jean-Paul Pelteret
Dear Toddy, This is a link to the documentation, where this function (a class constructor) is explained in more detail https://dealii.org/current/doxygen/deal.II/classDoFAccessor.html#a8d14894a737bb1edf3719e4de058a284

Re: [deal.II] Problem about cell iterator

2021-11-22 Thread Toddy Liu
Professor Wolfgang, Thanks for your advice and I will try my best to do what you told me. I asked the problem about the transform between dofhandler iterator and triangulation iterator because I have never used this function. Except this function, I 'm familiar with the other functions used in

Re: [deal.II] Problem about cell iterator

2021-11-22 Thread Wolfgang Bangerth
On 11/22/21 6:55 PM, Toddy Liu wrote: I used the method that you taught me. but unfortunately the results seems bad. And I'm not sure where the problem is including the transform between dofhandler iterator and triangulation iterator. So please take a look at my codes(two pieces of codes

Re: [deal.II] Problem about cell iterator

2021-11-22 Thread Toddy Liu
Hi, Jean I used the method that you taught me. but unfortunately the results seems bad. And I'm not sure where the problem is including the transform between dofhandler iterator and triangulation iterator. So please take a look at my codes(two pieces of codes shown in the following figures)

Re: [deal.II] Problem about cell iterator

2021-11-12 Thread Toddy Liu
Hello, Jean I'll look at the material and have a try. Thanks for your help Best, Toddy 在2021年11月13日星期六 UTC+8 上午1:03:04 写道: > Hi Toddy, > > It’s possible to convert a triangulation iterator to a DoF iterator using > the technique described here: > >

Re: [deal.II] Problem about cell iterator

2021-11-12 Thread Jean-Paul Pelteret
Hi Toddy, It’s possible to convert a triangulation iterator to a DoF iterator using the technique described here: https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators

[deal.II] Problem about cell iterator

2021-11-11 Thread Toddy Liu
Dear Deal.II community, I'm programming on modifying step 35 using Parallel computing with multiple processors using distributed memory. In step35, the tutorial program used "synchronous" iterator which consists of two iterators, one for velocity and the other for pressure. Now I'm struggling