Tags.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include "DataStructures/DataVector.hpp"
7 #include "DataStructures/DataBox/Tag.hpp"
9 
10 namespace grmhd::GhValenciaDivClean {
11 /// %Tags for the combined system of the Generalized Harmonic formulation for
12 /// the Einstein field equations and the Valencia GRMHD formulation.
13 namespace Tags {
14 namespace detail {
15 // A const reference to another tag, used for rerouting arguments in the
16 // combined system utilities
17 template <typename Tag>
18 struct TemporaryReference {
19  using tag = Tag;
20  using type = const typename Tag::type&;
21 };
22 } // namespace detail
23 
24 /// Represents the trace reversed stress-energy tensor of the matter in the MHD
25 /// sector of the GRMHD system
27  using type = tnsr::aa<DataVector, 3>;
28 };
29 
30 /// Represents the stress-energy tensor of the matter in the MHD sector of the
31 /// GRMHD system
33  using type = tnsr::aa<DataVector, 3>;
34 };
35 
36 /// The comoving magnetic field \f$b^\mu\f$
38  using type = tnsr::A<DataVector, 3>;
39 };
40 
41 /// The fluid four-velocity \f$u^\mu\f$
43  using type = tnsr::A<DataVector, 3>;
44 };
45 
46 /// The down-index comoving magnetic field \f$b_\mu\f$
48  using type = tnsr::a<DataVector, 3>;
49 };
50 
51 /// The down-index four-velocity \f$u_\mu\f$
53  using type = tnsr::a<DataVector, 3>;
54 };
55 } // namespace Tags
56 } // namespace grmhd::GhValenciaDivClean
grmhd::GhValenciaDivClean::Tags::FourVelocity
The fluid four-velocity .
Definition: Tags.hpp:42
db::SimpleTag
Mark a struct as a simple tag by inheriting from this.
Definition: Tag.hpp:36
grmhd::GhValenciaDivClean::Tags::StressEnergy
Represents the stress-energy tensor of the matter in the MHD sector of the GRMHD system.
Definition: Tags.hpp:32
grmhd::GhValenciaDivClean::Tags::TraceReversedStressEnergy
Represents the trace reversed stress-energy tensor of the matter in the MHD sector of the GRMHD syste...
Definition: Tags.hpp:26
grmhd::GhValenciaDivClean::Tags::FourVelocityOneForm
The down-index four-velocity .
Definition: Tags.hpp:52
Tensor.hpp
grmhd::GhValenciaDivClean
Namespace associated with utilities for the combined Generalized Harmonic and Valencia formulation of...
Definition: BoundaryCorrection.hpp:17
grmhd::GhValenciaDivClean::Tags::ComovingMagneticFieldOneForm
The down-index comoving magnetic field .
Definition: Tags.hpp:47
grmhd::GhValenciaDivClean::Tags::ComovingMagneticField
The comoving magnetic field .
Definition: Tags.hpp:37