[FLASH-USERS] Adding new particle attributes to be written to the particles output file

Anshu Dubey dubey at flash.uchicago.edu
Thu Mar 8 09:32:26 EST 2012


Nathan,

You should include the following lines in your application config file


   PARTICLETYPE newtype INITMETHOD lattice MAPMETHOD quadratic
ADVMETHOD rungekutta

   REQUIRES Particles/ParticlesMain
   REQUESTS Particles/ParticlesMapping/Quadratic
   REQUESTS Particles/ParticlesInitialization/Lattice
   REQUESTS IO/IOMain/
   REQUESTS IO/IOParticles

If you have a new way of initializing, or mapping, you have to specify
those in the
first line and request appropriate subunits. Basically the first line registers
your particle type with the framework and the REQUESTS lines make sure that the
appropriate subunits are included.

If you need further help with this please write directly to me.

Best,
Anshu


On Tue, Mar 6, 2012 at 7:46 PM, Nathan Goldbaum <goldbaum at ucolick.org>wrote:

> Hello all,
>
> I'm working with a new particle type in FLASH4-beta.  In the Config file
> for the new particle type, I define several new PARTICLEPROP variables.
>  Right now the particle data are written to plain ascii files using a
> hardcoded subroutine in IO_writePlotfile.F90.  This works, but the
> resulting ascii files are difficult to parse and will break depending on
> the problem configuration or if one tried to run a simulation with more
> than one particle type.  I'd really like to write out my particle data to
> the hdf5 particle files.
>
> I'm curious how I would go about doing that.  When I try to force flash to
> write particle files, it looks like no data actually gets dumped (the
> localnp dataset consists of an array of nblocks zeros).  How do I register
> my new particle type with the hdf5 output routines?
>
> There is also an 'unknown names' dataset that contains garbled versions of
> the PARTICLEPROP variables I set in the config file for the new particle
> type.  Does anyone know how I register the PARTICLEPROP strings with the
> hdf5 output routines?
>
> Nathan Goldbaum
> Graduate Student
> Astronomy & Astrophysics, UCSC
> goldbaum at ucolick.org
> http://www.ucolick.org/~goldbaum
>
>


-- 
**********************************************************************************************************
Anshu Dubey
Associate Director and CS/Applications Group Leader          5747 S. Ellis
Avenue 3rd Flr.
Flash Center for Computational Science                                773
834 2999 (office)
Fellow, Computation
Institute                                                  312 420 0033
(mobile)
University of Chicago and Argonne National Laboratory        773 834 3230
(fax)
**********************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20120308/7e210f07/attachment.htm>


More information about the flash-users mailing list