-
Hey, I'm trying to implement an alpha viscosity disc by enrolling my own viscosity function:
The function seems to be doing what I expect, however there isn't any change in the outputs. Any suggestions on where I might be going wrong or what I might be missing? I understand that nu_aniso will be read by the code and nothing will be done with it, but would this not be the right thing to do in order to have a nu viscosity that varies over the domain? Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @gaturpin 😄 Sorry if I am missing your question... but I think the answer here is that anisotropic viscosity is not yet implemented in Athena++. If you change Sincerely, |
Beta Was this translation helpful? Give feedback.
-
To add to Patrick's comment, there might be some confusion about "anisotropic." Athena uses this to mean diffusion is different in different directions, not that diffusion is different in different locations. |
Beta Was this translation helpful? Give feedback.
-
Great, thank you! I did start doing this but it felt weird to me because, as Chris said, I was confused by iso and aniso in this context. |
Beta Was this translation helpful? Give feedback.
Hi @gaturpin 😄
Sorry if I am missing your question... but I think the answer here is that anisotropic viscosity is not yet implemented in Athena++. If you change
phdif->nu(HydroDiffusion::DiffProcess::aniso,k,j,i) = nu_viscosity;
tophdif->nu(HydroDiffusion::DiffProcess::iso,k,j,i) = nu_viscosity;
, then I believe you will get the behavior you are after. You can read more about the available diffusive physics in Athena++ here: https://github.com/PrincetonUniversity/athena/wiki/Diffusion-ProcessesSincerely,
Patrick