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

2019-09-19 Thread Jinhyun Choo
Dear Rene, Thank you so much for your excellent explanation. I now understand and agree with that the approach you have chosen is the best way for this purpose. Yidong also told me that he has successfully implemented such helper functions for converting a particle's several features (although

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

2019-09-16 Thread Rene Gassmöller
Dear Jinhyun, It is great to hear that our implementation has been useful for you. You are probably aware that we described the implementation in our paper here: https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2018GC007508, but there is also an earlier version of the article on Arxiv t

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

2019-09-14 Thread Jinhyun Choo
Dear Wolfgang, Thanks for your answer. To be clearer, Yidong and I have been working on the material point method (MPM) which is an offspring of the particle in cell method. We have implemented in using deal.ii as described in our arxiv preprint https://arxiv.org/abs/1905.00671. We are now work

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

2019-09-13 Thread Wolfgang Bangerth
On 9/13/19 1:53 AM, Yidong ZHAO wrote: > > 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. Yes, do the interpretation function. I've put my thoughts into some of the documentation. See here:

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 https://

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

2019-09-12 Thread Wolfgang Bangerth
Yidong, > 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 etc.)? No -- the ParticleHandler actual

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 e

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

2019-09-12 Thread Wolfgang Bangerth
> 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

[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. I