[deal.II] ParticleHandler with local refinement

2019-11-20 Thread Yidong ZHAO
Hi all, I'm using ParticleHandler to handle multiple particles, I want to know what I should do for ParticleHandler before and after local refinement. I would be grateful for any help! Many thanks, Yidong -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum

Re: [deal.II] The type of particle properties

2019-09-13 Thread Yidong ZHAO
Dear Wolfgang, Thanks! I want to store some material properties in particle properties. If it's complicated, I think a better way is to write an interpretation function. Best, Yidong > > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see

Re: [deal.II] The type of particle properties

2019-09-12 Thread Yidong ZHAO
Dear Wolfgang, Thanks for your prompt and clear answer! Yes, I think *interpret* can work. Here I want to ask for a follow-up question: Whether it's possible(how difficult) to write a child class of Particle, whose property is not an array of double, but other self-defined types (like Tensor

[deal.II] The type of particle properties

2019-09-11 Thread Yidong ZHAO
Hello all, >From the descriptions of Particle( https://www.dealii.org/current/doxygen/deal.II/classParticles_1_1Particle.html) and PropertyPool( https://www.dealii.org/current/doxygen/deal.II/classParticles_1_1PropertyPool.html), I know the properties of a particle should be ArrayView type.

Re: [deal.II] make_sparsity_pattern, make_flux_sparsity_pattern problem when elements are connected with vertex

2019-03-20 Thread Yidong ZHAO
Dear Wolfgang: Thanks for your reply and suggestions, I will go to the source code of them. Best, Yidong 在 2019年3月20日星期三 UTC+8下午9:09:40,Wolfgang Bangerth写道: > > On 3/19/19 10:39 PM, Yidong ZHAO wrote: > > > > While using a new kind of shape function, degrees of freed

[deal.II] make_sparsity_pattern, make_flux_sparsity_pattern problem when elements are connected with vertex

2019-03-19 Thread Yidong ZHAO
Hello all, While using a new kind of shape function, degrees of freedom on each cell will couple to the degrees of freedom on other cells connected to the current one by a common face or common vertex. >From the description of make_flux_sparsity_pattern(), it can solve the problem when two

[deal.II] How to build SparsityPattern when quadrature point has non-zero shape value to adjacent element's nodes

2019-03-19 Thread Yidong ZHAO
Hello, While implementing a new kind shape function which has non-zero shape value between a quadrature point and an adjacent element's node, I found I couldn't find a way to make a SparsityPattern. Could somebody give some suggestions how to build SparsityPattern? The attach file is a