|
SpECTRE
v2026.06.09.01
|
Numeric data from volume data files. More...
#include <NumericData.hpp>
Classes | |
| struct | FileGlob |
| struct | SubfileName |
| struct | ObservationStep |
| struct | Verbosity |
Public Types | |
| using | options = tmpl::list<FileGlob, SubfileName, ObservationStep, Verbosity> |
| Public Types inherited from ray_tracing::BackgroundSpacetime | |
| using | tags |
| These tags can be retrieved from the background spacetime. They are required to evaluate the gr::geodesic_equation. | |
Public Member Functions | |
| NumericData (const NumericData &) | |
| NumericData & | operator= (const NumericData &) |
| NumericData (NumericData &&)=default | |
| NumericData & | operator= (NumericData &&)=default |
| NumericData (std::string file_glob, std::string subfile_name, std::optional< int > observation_step, ::Verbosity verbosity=::Verbosity::Silent) | |
| auto | get_clone () const -> std::unique_ptr< BackgroundSpacetime > override |
| Copies the background spacetime. Must call initialize on the clone before using it. | |
| void | initialize (std::array< double, 2 > new_time_bounds) override |
| Initialize the background spacetime, e.g. by reading data from a file. | |
| std::array< double, 2 > | time_bounds () const override |
| Time bounds for which the background spacetime is valid. The variables function can be called for any time in this range (inclusive). | |
| tuples::tagged_tuple_from_typelist< tags > | variables (const tnsr::I< DataType, Dim, Frame > &x, double t, std::optional< gsl::not_null< std::vector< size_t > * > > block_order=std::nullopt) const override |
| Returns all spacetime variables at a given point in space and time. | |
| void | pup (PUP::er &p) override |
Static Public Attributes | |
| static constexpr Options::String | help = "Numeric data from volume data files" |
Friends | |
| bool | operator== (const NumericData &lhs, const NumericData &rhs) |
Additional Inherited Members | |
| Protected Types inherited from ray_tracing::BackgroundSpacetime | |
| using | DataType = double |
| using | Frame = ::Frame::Inertial |
| using | DerivLapse |
| using | DerivShift |
| using | DerivInvSpatialMetric |
| using | DerivSpatialMetric |
| Static Protected Attributes inherited from ray_tracing::BackgroundSpacetime | |
| static constexpr size_t | Dim = 3 |
Numeric data from volume data files.
|
inlineoverridevirtual |
Copies the background spacetime. Must call initialize on the clone before using it.
Implements ray_tracing::BackgroundSpacetime.
|
overridevirtual |
Initialize the background spacetime, e.g. by reading data from a file.
This function is called before the first call to variables(). It is valid to call initialize again with new time bounds. Derived classes must guarantee that the variables function can be called from other threads while initialize is running (e.g. loading new data from files), but only with times within the overlap of the previous and the new time bounds.
| time_bounds | The time bounds for which to initialize the background spacetime. The spacetime should be valid for all times in this range. |
Reimplemented from ray_tracing::BackgroundSpacetime.
|
overridevirtual |
Time bounds for which the background spacetime is valid. The variables function can be called for any time in this range (inclusive).
Reimplemented from ray_tracing::BackgroundSpacetime.
|
overridevirtual |
Returns all spacetime variables at a given point in space and time.
This function must be thread-safe.
| x | Spatial coordinates |
| t | Time |
| block_order | Optional priority order for processing blocks during interpolation. If specified, it will be updated to push the block in which the point was found to the front. Can be empty, in which case it will be initially set to the default order. See block_logical_coordinates for more details. |
Implements ray_tracing::BackgroundSpacetime.