[FLASH-USERS] Multispecies heterogeneous set up with USM

Milad Fatenejad milad at flash.uchicago.edu
Wed Aug 29 14:56:02 EDT 2012


Hi Rob:

Yes, if you have defined two species with the names FOIL and GAS then there
will be two variables called FOIL_SPEC and GAS_SPEC which represent the
mass fractions of each species in each cell. In the
Simulation_initBlock.F90 file, you just have to set these two variables
such that they sum to one. If you create the species using the
"species=foil,gas" setup variable, you can set the properties of each
species (A, Z, etc...) in the flash.par file. Follow the link below for a
description:

http://flash.uchicago.edu/site/flashcode/user_support/flash_ug_devel/node17.html#SECTION05440000000000000000

This link goes through an example of how to set the species properties in
the flash.par file:

http://flash.uchicago.edu/site/flashcode/user_support/flash_ug_devel/node34.html#SECTION08175000000000000000

Once you set the values of FOIL_SPEC and GAS_SPEC in the
Simulation_initBlock.F90 file and the species properties in the flash.par
file, then the EOS unit itself will take care of setting things like YE and
SUMY for you - if you use an appropriate EOS, such as Multigamma or MTMMMT.

Is that helpful?

Thanks
Milad

On Wed, Aug 29, 2012 at 12:27 PM, Robert Crowston <rhc504 at york.ac.uk> wrote:

> Hi, when using the unstaggered mesh MHD solver, is it possible to specify
> that different species start in different places in space? I am trying to
> model the explosion of an aluminium (say) foil into a magnetised hydrogen
> gas. I've been looking at the LaserSlab example problem to understand how
> to configure different species. As I understand it, the calls to
> Grid_putPointData( ..., ..., YE_MSCALAR, ..., zbar/abar) and similarly with
> SUMY_MSCALAR are setting up the mass fractions in these blocks. Is that
> right? But I don't know how to get these constants defined with USM.
>
> Thanks for your help!
> Rob Crowston
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20120829/fd666a6a/attachment.htm>


More information about the flash-users mailing list