Is there a special option for a polytropic equation of state? #540
Replies: 5 comments 2 replies
-
If K is a fixed constant throughout the simulation, then this is not a supported option. Actually, for beta not equal to 1, I don't know that the general eos can help; I think it assumes a two-dimensional thermodynamic space, though I'm happy to be corrected. If K varies and you really want a gas that changes volume adiabatically (until it is shocked), then that is the adiabatic eos. Athena only has adiabatic, isothermal, and general (non-barotropic) eos, and so NON_BAROTROPIC_EOS basically means non-isothermal. This flag is used throughout the code to indicate that the fluid has a 5D state (whether that be density / 3D velocity / pressure or density / 3D momentum / energy) rather than 4D (density / 3D velocity or density / 3D momentum), and so array sizes and loop limits are adjusted accordingly. |
Beta Was this translation helpful? Give feedback.
-
The general eos assumes a 2d thermodynamic space. You might be kludge it in
the general eos, but I wouldn't recommend it.
…On Fri, Jul 28, 2023, 6:50 PM Chris White ***@***.***> wrote:
If K is a fixed constant throughout the simulation, then this is not a
supported option. Actually, for beta not equal to 1, I don't know that the
general eos can help; I think it assumes a two-dimensional thermodynamic
space, though I'm happy to be corrected.
If K varies and you really want a gas that changes volume adiabatically
(until it is shocked), then that is the adiabatic eos.
Athena only has adiabatic, isothermal, and general (non-barotropic) eos,
and so NON_BAROTROPIC_EOS basically means non-isothermal. This flag is used
throughout the code to indicate that the fluid has a 5D state (whether that
be density / 3D velocity / pressure or density / 3D momentum / energy)
rather than 4D (density / 3D velocity or density / 3D momentum), and so
array sizes and loop limits are adjusted accordingly.
—
Reply to this email directly, view it on GitHub
<#540 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL3VOWOFSBL57AV5BI5OWDXSQ63HANCNFSM6AAAAAA2372QR4>
.
You are receiving this because you are subscribed to this thread.Message
ID: <PrincetonUniversity/athena/repo-discussions/540/comments/6580080@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
This should work, but you should do some tests to make sure things behave properly. |
Beta Was this translation helpful? Give feedback.
-
Thank-you Matt. I can test it against Pluto. Just one question: Should I place this code in the code generator file? |
Beta Was this translation helpful? Give feedback.
-
Thank-you. I'll try it!!....Karim |
Beta Was this translation helpful? Give feedback.
-
(1) Is there a special option for a polytropic eos, where p = K rho^beta, or do I have to go the general eos route?
(2) Am I correct in understanding that the flag NON_BAROTROPIC_EOS (set in configure.py) really means "non isothermal"?
Thanks,
Karim
Beta Was this translation helpful? Give feedback.
All reactions