|
|
| 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. More...
|
| |
| void | initialize (std::array< double, 2 > new_time_bounds) override |
| | Initialize the background spacetime, e.g. by reading data from a file. More...
|
| |
| 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). More...
|
| |
| 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. More...
|
| |
|
void | pup (PUP::er &p) override |
| |
| virtual auto | get_clone () const -> std::unique_ptr< BackgroundSpacetime >=0 |
| | Copies the background spacetime. Must call initialize on the clone before using it. More...
|
| |
| virtual void | initialize (const std::array< double, 2 > time_bounds) |
| | Initialize the background spacetime, e.g. by reading data from a file. More...
|
| |
| virtual std::array< double, 2 > | time_bounds () const |
| | Time bounds for which the background spacetime is valid. The variables function can be called for any time in this range (inclusive). More...
|
| |
| virtual 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 =0 |
| | Returns all spacetime variables at a given point in space and time. More...
|
| |
Numeric data from volume data files.
| void ray_tracing::NumericData::initialize |
( |
std::array< double, 2 > |
time_bounds | ) |
|
|
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.
- Parameters
-
| 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.