[FLASH-USERS] adding particle unit
Slavin, Jonathan
jslavin at cfa.harvard.edu
Thu Apr 25 11:15:35 EDT 2019
I'm adding both. It's for dust particles which need to know the gas
conditions (relative velocity, density and possibly temperature) at their
locations and then are subject to drag. So added a short range drag force
under Particles/ParticlesForces/shortRange/drag and an advancement method
under Particles/ParticleMain/active/dust
I think it may be working now (i.e. the setup), though I'm still debugging
the actual code.
Jon
On Thu, Apr 25, 2019 at 10:03 AM John ZuHone <jzuhone at gmail.com> wrote:
> Hi Jonathan,
>
> I think we’d need a bit more info about your new algorithm. Are you
> defining a new advancement method for particles advancement, as opposed to
> just adding a new force?
>
> If you want you can send some code to me directly, but I might not be able
> to get to it today.
>
> John
>
> On Apr 25, 2019, at 9:58 AM, Slavin, Jonathan <jslavin at cfa.harvard.edu>
> wrote:
>
> I think I figured out the answer to this. I needed to edit Particles.h
> I don't understand what the numbers mean though.
> #define PASSIVE 323
> #define EULER_MAS 364
> #define LEAPFROG 366
> #define LEAPFROG_COSMO 367
>
> If someone could clue me in on this, I'd appreciate it.
>
> Jon
>
> On Thu, Apr 25, 2019 at 8:35 AM Slavin, Jonathan <jslavin at cfa.harvard.edu>
> wrote:
>
>> Hi,
>>
>> I'm trying to add a new particle unit under
>> Particles/ParticlesMain/active. I think I've included all the necessary
>> REQUIRES statements in the Config file in the simulation directory, but
>> when I build I get an error during the compilation of
>> Particle_specifyMethods.F90:
>> Particles_specifyMethods.F90(49): error #6404: This name does not have a
>> type, and must have an explicit type. [DUST]
>> particleAdvVect(n) = DUST
>> -----------------------^
>> Particle_specifyMethods.F90 is autogenerated by setup, so it's unclear to
>> me how to make it so that the name of my new unit is declared. Any help on
>> this would be appreciated.
>>
>> Thanks,
>> Jon
>>
>> --
>> Jonathan D. Slavin
>> Astrophysicist - High Energy Astrophysics Division
>> Center for Astrophysics | Harvard & Smithsonian
>> Office: (617) 496-7981 | Cell: (781) 363-0035
>> 60 Garden Street | MS 83 | Cambridge, MA 02138
>>
>>
>
> --
> Jonathan D. Slavin
> Astrophysicist - High Energy Astrophysics Division
> Center for Astrophysics | Harvard & Smithsonian
> Office: (617) 496-7981 | Cell: (781) 363-0035
> 60 Garden Street | MS 83 | Cambridge, MA 02138
>
>
>
--
Jonathan D. Slavin
Astrophysicist - High Energy Astrophysics Division
Center for Astrophysics | Harvard & Smithsonian
Office: (617) 496-7981 | Cell: (781) 363-0035
60 Garden Street | MS 83 | Cambridge, MA 02138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20190425/cbdd31b8/attachment-0001.htm>
More information about the flash-users
mailing list