SpECTRE
v2025.01.30
|
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) | |
FunctionsOfTimeMap | retrieve_function_of_time (const std::unordered_set< std::string > &function_of_time_names, const std::optional< double > &time) const |
Searches the last observation in the volume subfile and returns clones of all functions of time in function_of_time_names . More... | |
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 |
Searches the last observation in the volume subfile and returns clones of all 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 |