Re: [deal.II] Particle Class Implementation

2020-06-10 Thread Wolfgang Bangerth

On 6/9/20 9:05 PM, Bruno Blais wrote:


In additional to what Jean-Paul suggested, you can look at the preliminary 
version of step-68 which does exactly what you would like to achieve with 
particles.
The code is available on the following pull request. Rene and I have put some 
work into it and it works quite well in its current state:
https://github.com/dealii/dealii/pull/10308 



And finally, there is a third tutorial program currently in the making:
  https://github.com/dealii/dealii/pull/10301
It is the most basic of them and primarily explains how to create particles 
and move them along.


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/c5473c72-d86e-0e8b-e891-b245915bbebf%40colostate.edu.


Re: [deal.II] Particle Class Implementation

2020-06-10 Thread Victoria W.
Dear Bruno and Jean-Paul, 

The new syntax worked great, and thank you for the extra resources Bruno.  

Best, Victoria 

On Tuesday, June 9, 2020 at 11:05:50 PM UTC-4, Bruno Blais wrote:
>
> Dear Victoria,
>
> In additional to what Jean-Paul suggested, you can look at the preliminary 
> version of step-68 which does exactly what you would like to achieve with 
> particles.
> The code is available on the following pull request. Rene and I have put 
> some work into it and it works quite well in its current state:
> https://github.com/dealii/dealii/pull/10308
>
> Best
> Bruno
>
>
> On Tuesday, 9 June 2020 16:06:15 UTC-4, Jean-Paul Pelteret wrote:
>>
>> Dear Victoria,
>>
>> You’re on the right track, but it looks like you got the syntax a bit 
>> wrong. To create a particle you need to write something like
>>
>> Particles::Particle particle;
>>
>> You’ll note that the specific constructor that is called is inferred from 
>> the arguments given to the instance of the class that’s being created (in 
>> this case, no arguments —> default constructor).
>>
>> There is a new tutorial, namely step-70 
>> , that uses 
>> particles. I don’t know whether or not it’s pitched at the right level for 
>> you to get to grips with some of the fundamentals (at first glance, it 
>> seems to involve a number of more advanced techniques). If it’s not quite 
>> tractable for you, then you could also take a look at some of the particle 
>> tests  in 
>> the test suite, such as this one 
>> ,
>>  
>> that might provide snippets of information that you need as you build up 
>> your understanding of this particular feature of the library.
>>
>> I hope that helps you a bit.
>> Best,
>> Jean-Paul
>>
>> On 09 Jun 2020, at 17:14, Victoria W.  wrote:
>>
>> Hello, 
>>
>> I'm a new deal.ii and C++ user, so this question might be a bit basic, 
>> but I was wondering how my implementation of the built-in deal.ii particle 
>> class should look.  Ultimately I'm looking to track a particle in laminar 
>> flow.  So far I've tried creating a simple particle at the origin after 
>> generating my geometry with the GridGenerator class.  Calling the particle 
>> class in my code looks like this: 
>>
>> Particles::Particle::Particle() 
>>
>> as per the documentation on dealii.org.  However I get the error 
>> message: error: dependent-name ‘dealii::Particles::Particle> dim>::Particle’ is parsed as a non-type, but instantiation yields a type.  
>> How should I be implementing this class to construct a particle, what type 
>> declaration should new particles be declared as, and are there other 
>> documentation or resources I should be looking at?  
>>
>> Thanks
>>
>> -- 
>> 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 dea...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/43d0b22c-d736-464d-9d83-da4d819eca90o%40googlegroups.com
>>  
>> 
>> .
>>
>>
>>

-- 
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/7b15eb6e-fc09-43f2-997d-e233e09829b1o%40googlegroups.com.


Re: [deal.II] Particle Class Implementation

2020-06-09 Thread Bruno Blais
Dear Victoria,

In additional to what Jean-Paul suggested, you can look at the preliminary 
version of step-68 which does exactly what you would like to achieve with 
particles.
The code is available on the following pull request. Rene and I have put 
some work into it and it works quite well in its current state:
https://github.com/dealii/dealii/pull/10308

Best
Bruno


On Tuesday, 9 June 2020 16:06:15 UTC-4, Jean-Paul Pelteret wrote:
>
> Dear Victoria,
>
> You’re on the right track, but it looks like you got the syntax a bit 
> wrong. To create a particle you need to write something like
>
> Particles::Particle particle;
>
> You’ll note that the specific constructor that is called is inferred from 
> the arguments given to the instance of the class that’s being created (in 
> this case, no arguments —> default constructor).
>
> There is a new tutorial, namely step-70 
> , that uses 
> particles. I don’t know whether or not it’s pitched at the right level for 
> you to get to grips with some of the fundamentals (at first glance, it 
> seems to involve a number of more advanced techniques). If it’s not quite 
> tractable for you, then you could also take a look at some of the particle 
> tests  in 
> the test suite, such as this one 
> ,
>  
> that might provide snippets of information that you need as you build up 
> your understanding of this particular feature of the library.
>
> I hope that helps you a bit.
> Best,
> Jean-Paul
>
> On 09 Jun 2020, at 17:14, Victoria W. > 
> wrote:
>
> Hello, 
>
> I'm a new deal.ii and C++ user, so this question might be a bit basic, but 
> I was wondering how my implementation of the built-in deal.ii particle 
> class should look.  Ultimately I'm looking to track a particle in laminar 
> flow.  So far I've tried creating a simple particle at the origin after 
> generating my geometry with the GridGenerator class.  Calling the particle 
> class in my code looks like this: 
>
> Particles::Particle::Particle() 
>
> as per the documentation on dealii.org.  However I get the error message: 
> error: dependent-name ‘dealii::Particles::Particle::Particle’ is 
> parsed as a non-type, but instantiation yields a type.  How should I be 
> implementing this class to construct a particle, what type declaration 
> should new particles be declared as, and are there other documentation or 
> resources I should be looking at?  
>
> Thanks
>
> -- 
> 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 dea...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/43d0b22c-d736-464d-9d83-da4d819eca90o%40googlegroups.com
>  
> 
> .
>
>
>

-- 
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/579f09e4-b8ab-4197-8b05-dbd5e6fde291o%40googlegroups.com.


Re: [deal.II] Particle Class Implementation

2020-06-09 Thread Jean-Paul Pelteret
Dear Victoria,

You’re on the right track, but it looks like you got the syntax a bit wrong. To 
create a particle you need to write something like

Particles::Particle particle;

You’ll note that the specific constructor that is called is inferred from the 
arguments given to the instance of the class that’s being created (in this 
case, no arguments —> default constructor).

There is a new tutorial, namely step-70 
, that uses particles. 
I don’t know whether or not it’s pitched at the right level for you to get to 
grips with some of the fundamentals (at first glance, it seems to involve a 
number of more advanced techniques). If it’s not quite tractable for you, then 
you could also take a look at some of the particle tests 
 in the test 
suite, such as this one 
, 
that might provide snippets of information that you need as you build up your 
understanding of this particular feature of the library.

I hope that helps you a bit.
Best,
Jean-Paul

> On 09 Jun 2020, at 17:14, Victoria W.  wrote:
> 
> Hello, 
> 
> I'm a new deal.ii and C++ user, so this question might be a bit basic, but I 
> was wondering how my implementation of the built-in deal.ii particle class 
> should look.  Ultimately I'm looking to track a particle in laminar flow.  So 
> far I've tried creating a simple particle at the origin after generating my 
> geometry with the GridGenerator class.  Calling the particle class in my code 
> looks like this: 
> 
> Particles::Particle::Particle() 
> 
> as per the documentation on dealii.org.  However I get the error message: 
> error: dependent-name ‘dealii::Particles::Particle::Particle’ is 
> parsed as a non-type, but instantiation yields a type.  How should I be 
> implementing this class to construct a particle, what type declaration should 
> new particles be declared as, and are there other documentation or resources 
> I should be looking at?  
> 
> Thanks
> 
> -- 
> 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/43d0b22c-d736-464d-9d83-da4d819eca90o%40googlegroups.com
>  
> .

-- 
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/4E5FB693-EBAE-4202-A773-561D6A56E6C7%40gmail.com.


[deal.II] Particle Class Implementation

2020-06-09 Thread Victoria W.
Hello, 

I'm a new deal.ii and C++ user, so this question might be a bit basic, but 
I was wondering how my implementation of the built-in deal.ii particle 
class should look.  Ultimately I'm looking to track a particle in laminar 
flow.  So far I've tried creating a simple particle at the origin after 
generating my geometry with the GridGenerator class.  Calling the particle 
class in my code looks like this: 

Particles::Particle::Particle() 

as per the documentation on dealii.org.  However I get the error message: 
error: dependent-name ‘dealii::Particles::Particle::Particle’ is 
parsed as a non-type, but instantiation yields a type.  How should I be 
implementing this class to construct a particle, what type declaration 
should new particles be declared as, and are there other documentation or 
resources I should be looking at?  

Thanks

-- 
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/43d0b22c-d736-464d-9d83-da4d819eca90o%40googlegroups.com.