> 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<double> type. > > Is there anyway I can use the self-defined class as particle's properties? No, for now it's just an array of doubles. But it is of course up to you how you *interpret* them. For example, when you define dynamics on these properties (i.e., a differential equation that describes how the properties evolve), then it's up to you to interpret, for example, an array of 9 numbers as the components of a 3x3 matrix. In other words, just convert the array of numbers to whatever type you need, update that type at the end of a time step, and then convert it back to an array of doubles.
Best W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: bange...@colostate.edu www: http://www.math.colostate.edu/~bangerth/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/ba493a91-c7f0-8763-a976-878a9c2b11a7%40colostate.edu.