|
SpECTRE
v2025.08.19
|
Magnetized TOV star initial data, where metric terms only account for the hydrodynamics not the magnetic fields. More...
#include <MagnetizedTovStar.hpp>
Classes | |
| struct | MagneticFields |
Public Types | |
| using | options = tmpl::push_back< tov_star::options, MagneticFields > |
| template<typename DataType > | |
| using | tags = typename tov_star::template tags< DataType > |
| using | equation_of_state_type = EquationsOfState::EquationOfState< true, 1 > |
Public Member Functions | |
| MagnetizedTovStar (const MagnetizedTovStar &rhs) | |
| MagnetizedTovStar & | operator= (const MagnetizedTovStar &rhs) |
| MagnetizedTovStar (MagnetizedTovStar &&) | |
| MagnetizedTovStar & | operator= (MagnetizedTovStar &&) |
| MagnetizedTovStar (double central_rest_mass_density, std::unique_ptr< EquationsOfState::EquationOfState< true, 1 > > equation_of_state, RelativisticEuler::Solutions::TovCoordinates coordinate_system, std::vector< std::unique_ptr< grmhd::AnalyticData::InitialMagneticFields::InitialMagneticField > > magnetic_fields) | |
| auto | get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override |
| template<typename DataType , typename... Tags> | |
| tuples::TaggedTuple< Tags... > | variables (const tnsr::I< DataType, 3 > &x, tmpl::list< Tags... >) const |
Retrieve a collection of variables at (x) | |
| void | pup (PUP::er &p) override |
| const EquationsOfState::EquationOfState< true, 1 > & | equation_of_state () const |
| virtual auto | get_clone () const -> std::unique_ptr< InitialData >=0 |
Static Public Attributes | |
| static constexpr Options::String | help = {"Magnetized TOV star."} |
| static constexpr size_t | volume_dim = 3_st |
Protected Attributes | |
| std::vector< std::unique_ptr< grmhd::AnalyticData::InitialMagneticFields::InitialMagneticField > > | magnetic_fields_ {} |
Friends | |
| bool | operator== (const MagnetizedTovStar &lhs, const MagnetizedTovStar &rhs) |
Magnetized TOV star initial data, where metric terms only account for the hydrodynamics not the magnetic fields.
Superposes magnetic fields on top of a TOV solution. These can be any of the classes derived from grmhd::AnalyticData::InitialMagneticFields::InitialMagneticField
While the amplitude \(A_b\) is specified in the code, it is more natural to work with the magnetic field strength, which is given by \(\sqrt{b^2}\) (where \(b^a\) is the comoving magnetic field), and in CGS units is
\begin{align*} |B_{\mathrm{CGS}}|&= \sqrt{4 \pi b^2} \left(\frac{c^2}{G M_\odot}\right) \left(\frac{c}{\sqrt{4 \pi \epsilon_0 G}}\right) \\ &= \sqrt{b^2} \times 8.352\times10^{19}\mathrm{G} \,. \end{align*}
We now give values used for standard tests of magnetized stars with a poloidal magnetic field.
Parameters for desired magnetic field strength:
Note that the magnetic field strength goes as \(A_b\) so any desired value can be achieved by a linear scaling.
|
overridevirtual |
Implements evolution::initial_data::InitialData.