|
| template<typename System > |
| void | spacetime_derivatives (gsl::not_null< Variables< db::wrap_tags_in<::Tags::deriv, typename System::gradients_tags, tmpl::size_t< 3 >, Frame::Inertial > > * > result, const Variables< typename System::variables_tag::tags_list > &volume_evolved_variables, const DirectionalIdMap< 3, evolution::dg::subcell::GhostData > &all_ghost_data, const size_t &deriv_order, const Mesh< 3 > &volume_mesh, const InverseJacobian< DataVector, 3, Frame::ElementLogical, Frame::Inertial > &cell_centered_logical_to_inertial_inv_jacobian) |
| | Compute partial derivatives of the spacetime variables \(g_{ab}\), \(\Phi_{iab}\), and \(\Pi_{ab}\). More...
|
| |
| template<typename NeighborVariables , typename FirstGhTag > |
| void | fill_neighbor_spacetime_variables (const gsl::not_null< DirectionMap< 3, gsl::span< const double > > * > ghost_cell_spacetime_vars, const DirectionalIdMap< 3, evolution::dg::subcell::GhostData > &all_ghost_data, const size_t number_of_gh_components) |
| | Helper function that takes spacetime variable data from a DirectionalIdMap containing all neighbor data and copies them to ghost_cell_spacetime_vars, a separate DirectionMap. More...
|
| |
|
template<typename VariableTags > |
| void | spacetime_kreiss_oliger_filter (gsl::not_null< Variables< VariableTags > * > result, const Variables< VariableTags > &volume_evolved_variables, const DirectionalIdMap< 3, evolution::dg::subcell::GhostData > &all_ghost_data, const Mesh< 3 > &volume_mesh, size_t order, double epsilon) |
| | Apply a Kreiss-Oliger filter to \(g_{ab}\), \(\Phi_{iab}\), and \(\Pi_{ab}\).
|
| |
|
template<typename SpacetimeTagsToReconstruct , typename PrimTagsForReconstruction , typename PrimsTags , typename SpacetimeAndConsTags , size_t ThermodynamicDim, typename HydroReconstructor , typename SpacetimeReconstructor , typename ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags , typename PrimsTagsSentByNeighbor > |
| void | reconstruct_prims_work (gsl::not_null< std::array< Variables< tags_list_for_reconstruct >, 3 > * > vars_on_lower_face, gsl::not_null< std::array< Variables< tags_list_for_reconstruct >, 3 > * > vars_on_upper_face, const HydroReconstructor &hydro_reconstructor, const SpacetimeReconstructor &spacetime_reconstructor, const ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags &spacetime_vars_for_grmhd, const Variables< PrimsTags > &volume_prims, const Variables< SpacetimeAndConsTags > &volume_spacetime_and_cons_vars, const EquationsOfState::EquationOfState< true, ThermodynamicDim > &eos, const Element< 3 > &element, const DirectionalIdMap< 3, Variables< PrimsTagsSentByNeighbor > > &neighbor_data, const Mesh< 3 > &subcell_mesh, size_t ghost_zone_size, bool compute_conservatives, bool reconstruct_density_times_temperature, const VariableFixing::FixToAtmosphere< 3 > *fix_to_atmosphere) |
| | Reconstructs \(\rho, p, Wv^i, B^i\), \(\Phi\), and the spacetime metric, then computes the Lorentz factor, upper spatial velocity, specific internal energy, and the conserved variables. All results are written into vars_on_lower_face and vars_on_upper_face.
|
| |
| template<typename SpacetimeTagsToReconstruct , typename PrimTagsForReconstruction , typename PrimsTagsSentByNeighbor , typename PrimsTags , size_t ThermodynamicDim, typename LowerHydroReconstructor , typename LowerSpacetimeReconstructor , typename UpperHydroReconstructor , typename UpperSpacetimeReconstructor , typename ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags > |
| void | reconstruct_fd_neighbor_work (gsl::not_null< Variables< tags_list_for_reconstruct_fd_neighbor > * > vars_on_face, const LowerHydroReconstructor &reconstruct_lower_neighbor_hydro, const LowerSpacetimeReconstructor &reconstruct_lower_neighbor_spacetime, const UpperHydroReconstructor &reconstruct_upper_neighbor_hydro, const UpperSpacetimeReconstructor &reconstruct_upper_neighbor_spacetime, const ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags &spacetime_vars_for_grmhd, const Variables< PrimsTags > &subcell_volume_prims, const Variables< grmhd::GhValenciaDivClean::Tags::spacetime_reconstruction_tags > &subcell_volume_spacetime_vars, const EquationsOfState::EquationOfState< true, ThermodynamicDim > &eos, const Element< 3 > &element, const DirectionalIdMap< 3, evolution::dg::subcell::GhostData > &ghost_data, const Mesh< 3 > &subcell_mesh, const Direction< 3 > &direction_to_reconstruct, size_t ghost_zone_size, bool compute_conservatives, bool reconstruct_density_times_temperature, const VariableFixing::FixToAtmosphere< 3 > *fix_to_atmosphere) |
| | Reconstructs \(\rho, p, Wv^i, B^i\), \(\Phi\), the spacetime metric, \(\Phi_{iab}\), and \(\Pi_{ab}\), then computes the Lorentz factor, upper spatial velocity, specific internal energy, and the conserved variables. All results are written into vars_on_face. More...
|
| |
|
template<typename System > |
| void | register_derived_with_charm () |
| |
Finite difference functionality for the coupled Generalized Harmonic and ValenciaDivClean equations.
template<typename SpacetimeTagsToReconstruct , typename PrimTagsForReconstruction , typename PrimsTagsSentByNeighbor , typename PrimsTags , size_t ThermodynamicDim, typename LowerHydroReconstructor , typename LowerSpacetimeReconstructor , typename UpperHydroReconstructor , typename UpperSpacetimeReconstructor , typename ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags >
| void grmhd::GhValenciaDivClean::fd::reconstruct_fd_neighbor_work |
( |
gsl::not_null< Variables< tags_list_for_reconstruct_fd_neighbor > * > |
vars_on_face, |
|
|
const LowerHydroReconstructor & |
reconstruct_lower_neighbor_hydro, |
|
|
const LowerSpacetimeReconstructor & |
reconstruct_lower_neighbor_spacetime, |
|
|
const UpperHydroReconstructor & |
reconstruct_upper_neighbor_hydro, |
|
|
const UpperSpacetimeReconstructor & |
reconstruct_upper_neighbor_spacetime, |
|
|
const ComputeGrmhdSpacetimeVarsFromReconstructedSpacetimeTags & |
spacetime_vars_for_grmhd, |
|
|
const Variables< PrimsTags > & |
subcell_volume_prims, |
|
|
const Variables< grmhd::GhValenciaDivClean::Tags::spacetime_reconstruction_tags > & |
subcell_volume_spacetime_vars, |
|
|
const EquationsOfState::EquationOfState< true, ThermodynamicDim > & |
eos, |
|
|
const Element< 3 > & |
element, |
|
|
const DirectionalIdMap< 3, evolution::dg::subcell::GhostData > & |
ghost_data, |
|
|
const Mesh< 3 > & |
subcell_mesh, |
|
|
const Direction< 3 > & |
direction_to_reconstruct, |
|
|
size_t |
ghost_zone_size, |
|
|
bool |
compute_conservatives, |
|
|
bool |
reconstruct_density_times_temperature, |
|
|
const VariableFixing::FixToAtmosphere< 3 > * |
fix_to_atmosphere |
|
) |
| |
Reconstructs \(\rho, p, Wv^i, B^i\), \(\Phi\), the spacetime metric, \(\Phi_{iab}\), and \(\Pi_{ab}\), then computes the Lorentz factor, upper spatial velocity, specific internal energy, and the conserved variables. All results are written into vars_on_face.
This is used on DG elements to reconstruct their subcell neighbors' solution on the shared faces.