|
SpECTRE
2021.08.02
|
Functionality for evolving hyperbolic partial differential equations using the discontinuous Galerkin method. More...
Namespaces | |
| namespace | Actions |
| Actions for using the discontinuous Galerkin to evolve hyperbolic partial differential equations. | |
| namespace | Initialization |
| Functionality for initializing the discontinuous Galerkin to evolve hyperbolic partial differential equations. | |
| namespace | subcell |
| Implementation of a generic finite volume/conservative finite difference subcell limiter. | |
| namespace | Tags |
| Tags used for DG evolution scheme. | |
Classes | |
| struct | ConservativeDuDt |
| Calculate \(\partial u/\partial t\) for a conservative system. More... | |
| class | MortarData |
| Data on the mortar used to compute the boundary correction for the DG scheme. More... | |
| struct | using_subcell |
If Metavars has a SubcellOptions member struct and SubcellOptions::subcell_enabled is true then inherits from std::true_type, otherwise inherits from std::false_type. More... | |
Functions | |
| template<size_t Dim, typename DtTagsList > | |
| void | interpolate_dt_terms_gauss_points (const gsl::not_null< Variables< DtTagsList > * > dt_vars, const Mesh< Dim > &volume_mesh, const Direction< Dim > &direction, const Variables< DtTagsList > &dt_corrections) noexcept |
| Interpolate the Bjorhus/time derivative corrections to the volume time derivatives in the specified direction. More... | |
| template<size_t Dim, typename DtTagsList , typename BoundaryCorrectionTagsList > | |
| void | lift_boundary_terms_gauss_points (const gsl::not_null< Variables< DtTagsList > * > dt_vars, const Scalar< DataVector > &volume_det_inv_jacobian, const Mesh< Dim > &volume_mesh, const Direction< Dim > &direction, const Variables< BoundaryCorrectionTagsList > &boundary_corrections, const Scalar< DataVector > &magnitude_of_face_normal, const Scalar< DataVector > &face_det_jacobian) noexcept |
| Lift the boundary corrections to the volume time derivatives in the specified direction. More... | |
| template<size_t Dim, typename DtTagsList , typename BoundaryCorrectionTagsList > | |
| void | lift_boundary_terms_gauss_points (const gsl::not_null< Variables< DtTagsList > * > dt_vars, const Scalar< DataVector > &volume_det_inv_jacobian, const Mesh< Dim > &volume_mesh, const size_t dimension, const Variables< BoundaryCorrectionTagsList > &upper_boundary_corrections, const Scalar< DataVector > &upper_magnitude_of_face_normal, const Scalar< DataVector > &upper_face_det_jacobian, const Variables< BoundaryCorrectionTagsList > &lower_boundary_corrections, const Scalar< DataVector > &lower_magnitude_of_face_normal, const Scalar< DataVector > &lower_face_det_jacobian) noexcept |
| Lift both the upper and lower (in logical coordinates) boundary corrections to the volume time derivatives in the specified logical dimension. More... | |
| template<size_t Dim> | |
| bool | operator!= (const MortarData< Dim > &lhs, const MortarData< Dim > &rhs) noexcept |
| template<typename VolumeVarsTagsList , typename FaceVarsTagsList , size_t Dim> | |
| void | project_contiguous_data_to_boundary (const gsl::not_null< Variables< FaceVarsTagsList > * > face_fields, const Variables< VolumeVarsTagsList > &volume_fields, const Mesh< Dim > &volume_mesh, const Direction< Dim > &direction) noexcept |
Projects a Variables of volume data to a contiguous subset of a boundary Variables More... | |
| template<typename TagsToProjectList , typename VolumeVarsTagsList , typename FaceVarsTagsList , size_t Dim> | |
| void | project_tensors_to_boundary (const gsl::not_null< Variables< FaceVarsTagsList > * > face_fields, const Variables< VolumeVarsTagsList > &volume_fields, const Mesh< Dim > &volume_mesh, const Direction< Dim > &direction) noexcept |
Projects a subset of the tensors in the volume_fields onto the face. More... | |
| template<typename Symm , typename IndexList , size_t Dim> | |
| void | project_tensor_to_boundary (const gsl::not_null< Tensor< DataVector, Symm, IndexList > * > face_field, const Tensor< DataVector, Symm, IndexList > &volume_field, const Mesh< Dim > &volume_mesh, const Direction< Dim > &direction) noexcept |
| Projects a tensor to the face. More... | |
Variables | |
| template<typename Metavars > | |
| constexpr bool | using_subcell_v = using_subcell<Metavars>::value |
If Metavars has a SubcellOptions member struct and SubcellOptions::subcell_enabled is true then is true, otherwise false. More... | |
Functionality for evolving hyperbolic partial differential equations using the discontinuous Galerkin method.
|
noexcept |
Interpolate the Bjorhus/time derivative corrections to the volume time derivatives in the specified direction.
The general interpolation term (for the \(+\xi\)-dimension) is:
\begin{align*} \partial_t u_{\alpha\breve{\imath}\breve{\jmath}\breve{k}}=\cdots +\ell^{\mathrm{Gauss-Lobatto}}_{N} \left(\xi_{\breve{\imath}}^{\mathrm{Gauss}}\right) \partial_t u^{\mathrm{BC}}_{\alpha\breve{\jmath}\breve{k}}, \end{align*}
where \(\breve{\imath}\), \(\breve{\jmath}\), and \(\breve{k}\) are indices in the logical \(\xi\), \(\eta\), and \(\zeta\) dimensions. \(\partial_t u^{\mathrm{BC}}\) is the time derivative correction, and the function Spectral::boundary_interpolation_term() is used to compute and cache the terms from the lifting terms.
|
noexcept |
Lift the boundary corrections to the volume time derivatives in the specified direction.
The general lifting term (for the \(\xi\)-dimension) is:
\begin{align*} \partial_t u_{\alpha\breve{\imath}\breve{\jmath}\breve{k}}=\cdots -\frac{\ell_{\breve{\imath}}\left(\xi=1\right)} {w_{\breve{\imath}}J_{\breve{\imath}\breve{\jmath}\breve{k}}} \left[J\sqrt{ \frac{\partial\xi}{\partial x^i} \gamma^{ij} \frac{\partial\xi}{\partial x^j}} \left(G_{\alpha} + D_{\alpha}\right) \right]_{\breve{\jmath}\breve{k}}\left(\xi=1\right), \end{align*}
where \(\breve{\imath}\), \(\breve{\jmath}\), and \(\breve{k}\) are indices in the logical \(\xi\), \(\eta\), and \(\zeta\) dimensions. The \(G+D\) terms correspond to the boundary_corrections function argument, and the function Spectral::boundary_lifting_term() is used to compute and cache the terms from the lifting terms \(\ell_{\breve{\imath}}(\xi=\pm1)/w_{\breve{\imath}}\).
|
noexcept |
Lift both the upper and lower (in logical coordinates) boundary corrections to the volume time derivatives in the specified logical dimension.
The upper and lower boundary corrections in the logical dimension are lifted together in order to reduce the amount of striding through data that is needed and to improve cache-friendliness.
The general lifting term (for the \(\xi\)-dimension) is:
\begin{align*} \partial_t u_{\alpha\breve{\imath}\breve{\jmath}\breve{k}}=\cdots -\frac{\ell_{\breve{\imath}}\left(\xi=1\right)} {w_{\breve{\imath}}J_{\breve{\imath}\breve{\jmath}\breve{k}}} \left[J\sqrt{ \frac{\partial\xi}{\partial x^i} \gamma^{ij} \frac{\partial\xi}{\partial x^j}} \left(G_{\alpha} + D_{\alpha}\right) \right]_{\breve{\jmath}\breve{k}}\left(\xi=1\right) - \frac{\ell_{\breve{\imath}}\left(\xi=-1\right)} {w_{\breve{\imath}}J_{\breve{\imath}\breve{\jmath}\breve{k}}} \left[J\sqrt{ \frac{\partial\xi}{\partial x^i} \gamma^{ij} \frac{\partial\xi}{\partial x^j}} \left(G_{\alpha} + D_{\alpha}\right) \right]_{\breve{\jmath}\breve{k}}\left(\xi=-1\right), \end{align*}
where \(\breve{\imath}\), \(\breve{\jmath}\), and \(\breve{k}\) are indices in the logical \(\xi\), \(\eta\), and \(\zeta\) dimensions. The \(G+D\) terms correspond to the upper_boundary_corrections and lower_boundary_corrections function arguments, and the function Spectral::boundary_lifting_term() is used to compute and cache the terms from the lifting terms \(\ell_{\breve{\imath}}(\xi=\pm1)/w_{\breve{\imath}}\).
|
noexcept |
Projects a Variables of volume data to a contiguous subset of a boundary Variables
The volume_fields are all projected into the face_fields in the direction direction. The tags in VolumeVarsTagsList must be a contiguous subset of the tags in FaceVarsTagsList. That is, FaceVarsTagsList must be equivalent to tmpl::append<Before, VolumeVarsTagsList, After> where Before and After are tmpl::lists of arbitrary size. This is because the projection is applied on all of the tensor components of the volume variables and is written into contiguous memory on the boundary.
In general, this function will be used for projecting all the evolved variables or all the volume fluxes to the faces. The function evolution::dg::project_tensors_to_boundary() should be used for projecting individual tensors to the face.
|
noexcept |
Projects a tensor to the face.
|
noexcept |
Projects a subset of the tensors in the volume_fields onto the face.
The tensors to project are listed in the TagsToProjectList.
|
constexpr |
If Metavars has a SubcellOptions member struct and SubcellOptions::subcell_enabled is true then is true, otherwise false.
DgSubcell library so that executables that do not use subcell do not need to link against it.