Skip to content

reframe coordinates to be barycentric #604

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

You must be logged in to vote

Adding to the above, your own source function can imitate the built-in mass at the origin in src/hydro/srcterms/pointmass.cpp, where the geometric factors are defined in the appropriate src/coordinates/ file. The use of face fluxes of mass for modifying the energy is there for good reason, but a quick and dirty cell-centered version using just the primitives can work decently. The only catch is if you decide to go into a rotating frame, since the obvious way of implementing the Coriolis force is wrong, and will cause your system to spiral out of control numerically.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@SudatKhan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SudatKhan
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