[FLASH-USERS] How to simulate Sod problem with different gamma values on the left and right side of shock position
Reyes, Adam
adam.reyes at rochester.edu
Wed May 22 07:20:11 EDT 2024
Hi Shadab,
I’m not really sure what the creator of this variation of the Sod problem had in mind when it was created, but it doesn’t seem to require anything that would allow for different gamma’s out of the box. I say that because it declares the species through the Config file, but doesn’t declare any multi species property for the gamma, or set them in anyway.
It *should* be possible to set this up with multiple gammas by modifying your setup line a little bit. I would try something like
> ./setup Sod -auto +uhd +ug +hdf5 -1d -nxb=32 species=left,rght -defines=SIMULATION_TWO_MATERIALS --with-unit=physics/Eos/EosMain/Multigamma
This will have setup figure out the species and to automatically declare runtime parameters that will initialize the species properties, such as the gamma, abar, zbar and others and bypass the declaration in Sod/Config. This will also use the Multigamma EoS, which as you might guess uses the gamma based on species fractions present in the cell.
Just be sure to set the ms_[left/right]* runtime parameters instead of the sim_[left/rght]* parms that would have been there before.
> *********************************************
Adam Reyes

Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
(he / him / his)

*********************************************
> On May 22, 2024, at 12:53 PM, Alam Shadab TU Ilmenau <shadab.alam at tu-ilmenau.de> wrote:
>
> Dear Flash users,
>
> Dear Flash users,
> I would like to run the Sod problem with different gamma values on the left and right sides of the shock position. How can I set these different values in the code?
>
> I attempted to configure it using the following setup line:
>
> ./setup -auto Sod +unsplitHydro +ug +hdf5 -1d -nxb=32 -unit=Multispecies/MultispeciesMain TwoMaterials=true
>
> However, I am getting the same results as when using a single gamma value.
>
> Any help would be greatly appreciated.
>
> Best regards,
> Shadab
>
>
>
>
>
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu <mailto:flash-users at flash.rochester.edu>
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240522/64e5f3e7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240522/64e5f3e7/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240522/64e5f3e7/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1391 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240522/64e5f3e7/attachment-0001.p7s>
More information about the flash-users
mailing list