Skip to content

Custom source terms in non-barotropic flow #476

Answered by c-white
hwhitehead asked this question in Q&A
Discussion options

You must be logged in to vote

Gravity has the property that naive discretizations of the equations tend to not be well balanced, causing noticable errors to accumulate in even simple test problems. With a uniform gravitational field these issues don't appear, but for anything else it often pays to consider discretizations carefully.

As it turns out, a number of Athena developers have published results on this topic. See Jiang et al. 2013 and Mullen et al. 2021. Those papers are concerned with the more complicated case of self gravity, but still have lessons for fixed potentials. In particular, by moving some of the source terms from cell-centered values to face-centered, flux-dependent values, one can exactly conserve…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tomidakn
Comment options

@hwhitehead
Comment options

Answer selected by hwhitehead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants