|
SpECTRE
v2025.08.19
|
Read in FunctionOfTime coefficients from an H5 file and volume subfile. More...
#include <FromVolumeFile.hpp>
Classes | |
| struct | H5Filename |
| struct | SubfileName |
Public Types | |
| using | options = tmpl::list< H5Filename, SubfileName > |
Public Member Functions | |
| FromVolumeFile (std::string h5_filename, std::string subfile_name, bool replay=false) | |
| FunctionsOfTimeMap | retrieve_function_of_time (const std::unordered_set< std::string > &function_of_time_names, const std::optional< double > &time) const |
| bool | replay () const |
| Whether the function of time from the volume file should just be replayed (read in and unmodified), or not. | |
Static Public Attributes | |
| static constexpr Options::String | help |
Read in FunctionOfTime coefficients from an H5 file and volume subfile.
The H5 file will only be accessed in the retrieve_function_of_time function.
| FunctionsOfTimeMap domain::creators::time_dependent_options::FromVolumeFile::retrieve_function_of_time | ( | const std::unordered_set< std::string > & | function_of_time_names, |
| const std::optional< double > & | time | ||
| ) | const |
Returns: clones of all global functions of time in function_of_time_names
If a value for time is specified, will ensure that time is within the domain::FunctionsOfTime::FunctionOfTime::time_bounds() of each function of time.
|
staticconstexpr |