Skip to content

Conversation

@nilsdeppe
Copy link
Member

Proposed changes

  • Adds the structs for computing the data sent for FD reconstruction

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    major new feature if appropriate.

Further comments

@nilsdeppe nilsdeppe requested review from fmahebert and kidder June 15, 2021 23:23
Copy link
Contributor

@fmahebert fmahebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM other than confusion about what variable u_i / v_i / v^i you actually mean in the docs 😛

* \f$u_i\f$, magnetic field \f$B^i\f$, and the divergence cleaning field
* \f$\Phi\f$ on the subcells so they can be used for reconstruction.
*
* The computation copies the data from the primitive variables tag to a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "primitive variables tag" -> "primitive variables" is sufficient

* \f$\Phi\f$ on the subcells so they can be used for reconstruction.
*
* The computation copies the data from the primitive variables tag to a
* new Variables and computes \f$W v^i\f$. In the future we will likely want
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify how "W v^i" is related to the "u_i" you mention above? At first glance these things seem inconsistent... is the "u_i" above wrong? 😛

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The brief should read W v^i (which is \gamma^{ij} u_j). I'll update the brief :)


/*!
* \brief Projects the rest mass density \f$\rho\f$, pressure \f$p\f$,
* \f$u_i\f$, magnetic field \f$B^i\f$, and the divergence cleaning field
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question about "u_i" as in first commit

* subcell reconstruction.
*
* The computation copies the data from the primitive variables tag to a
* new Variables and computes \f$u_i=W v_i\f$, then does the projection. In the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well now you've added "W v_i" into the mix.. halp

@nilsdeppe nilsdeppe force-pushed the subcell_grmhd_ghost_data branch from 713b043 to a125b64 Compare June 16, 2021 22:15
@nilsdeppe
Copy link
Member Author

I rebased and squashed in updates to the documentation. Thanks for the review :)

* we will likely want to elide this copy but that requires support from the
* actions. We should also consider if we want to use \f$u_i\f$ as a primitive
* instead of \f$v^i\f$ to further reduce work. It might also work to
* reconstruct \f$W v^i\f$ since this also guarantees a positive Lorentz factor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining confusion: "It might also work to reconstruct W v^i..." ... but isn't that what is being done? why phrased as a hypothetical? You also say (in the previous sentence) that u_i would be less work, and then in this sentence that v^i is cheaper to compute. This sounds either inconsistent or overly simplified.. but has me confused either way..

(Note: I do think it's great to document these avenues for future exploration! I just want the suggestions to be very clear so the person revisiting this doesn't go down the wrong path...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch :) I've deleted the extra info since that change is already implemented :)

@nilsdeppe nilsdeppe force-pushed the subcell_grmhd_ghost_data branch from a125b64 to cdcd131 Compare June 17, 2021 00:12
fmahebert
fmahebert previously approved these changes Jun 17, 2021
kidder
kidder previously approved these changes Jun 17, 2021
Copy link
Member

@kidder kidder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional change you can squash

namespace grmhd::ValenciaDivClean::subcell {
/*!
* \brief Computes the rest mass density \f$\rho\f$, pressure \f$p\f$,
* \f$W v^i\f$, magnetic field \f$B^i\f$, and the divergence cleaning field
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add "Lorentz factor times the spatial velocity" before W v^i

@nilsdeppe nilsdeppe dismissed stale reviews from kidder and fmahebert via 0a17950 June 17, 2021 21:49
@nilsdeppe nilsdeppe force-pushed the subcell_grmhd_ghost_data branch from cdcd131 to 0a17950 Compare June 17, 2021 21:49
@nilsdeppe
Copy link
Member Author

squashed in the two wording changes

@kidder kidder merged commit fa49824 into sxs-collaboration:develop Jun 18, 2021
@nilsdeppe nilsdeppe deleted the subcell_grmhd_ghost_data branch September 5, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants