[FLASH-USERS] Multispecies heterogeneous set up with USM

Milad Fatenejad milad at flash.uchicago.edu
Thu Aug 30 14:00:19 EDT 2012


Hi Rob:

Yes, continuing the above example, simply add "gas" and "foil" to the list
of plot vars in the runtime parameter file (flash.par). For example:

plot_var_1 = "gas"
plot_var_2 = "foil"

You can then plot these variables.

Thanks
Milad

On Thu, Aug 30, 2012 at 10:56 AM, Robert Crowston <rhc504 at york.ac.uk> wrote:

> Yes that's great thanks.
>
> Is there a way of adding a plot variable that keeps track of where each
> fluid species is? So I can see how the two species are mixing as the
> simulation progresses.
>
> Cheers,
> Rob Crowston
>
> On 29 August 2012 19:56, Milad Fatenejad <milad at flash.uchicago.edu> wrote:
>
>> 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
>>>
>>
>>
>
>
> --
> Robert Crowston
> York Plasma Institute, Dept of Physics
> University of York
> Genesis 2, Innovation Way
> YO10 5DQ
> United Kingdom
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20120830/e7636444/attachment.htm>


More information about the flash-users mailing list