[FLASH-USERS] Changing Gamma (eos)

Seyit Hocuk seyit at astro.rug.nl
Mon Apr 21 13:20:15 EDT 2008


Hi Anshu,

I am using FLASH2.5 and it might be a little different to version 3.0. 
Though I have tried to change things in eos.F90, but the unfortunate 
thing is that (pretty sure) eos.F90 is not called at every timestep 
'dt'. It is (might be) only used when initializing the blocks. This is 
of no use to me. I want to update gamma like you say at every timestep 
(gamma will be dependant on temperature and density basically).

In Flash2.5, the eos.F90 is in "source/materials/eos/gamma/".

Btw. I am using a module eos1d inside my "init_block.F90" file. Of 
course, changing the formula of gamma there isn't helping.

Thanks,
Seyit


> Hi Seyit,
>
> This feature is not a part of FLASH default behavior. If you are using
> FLASH3 then you have two options. The value of gamma in Eos is carried
> in a variable called eos_gamma, which is defined in the data module for
> the Eos unit, in file "source/physics/Eos/EosMain/Eos_data.F90". Normally
> this variable is initialized in Eos_init, and then used in "Eos.F90".
> Your first and simplest option is to add a line
> at the beginning of "Eos.F90" to update the eos_gamma value at each time
> step. You can fetch the value of dt by calling the function
> "Driver_getDt".  If you need time dependent gamma for only one
> setup, then the better option is to place a copy of Eos.F90 in the
> simulation directory and modify that file as described above. That way
> you won't have to worry about the source tree when you get later
> versions of FLASH.
>
> Anshu
>
>   
>> Hi all,
>>
>> I have a simple question. I want to put a changing gamma in my
>> simulation. e.g. a gamma which changes and depends on dt. Where to
>> change this formula of gamma?
>>
>> I can't locate it in the database.
>>
>> Thanks,
>> Seyit
>>
>>     




More information about the flash-users mailing list