Template Struct Time

Struct Documentation

template<typename Real>
struct Time

Class to manage time-related parameters and operations.

テンプレートパラメータ:

Real --

Public Functions

inline void initialize()

Initialize time parameters.

inline Time(const Config &config)

Default constructor.

inline std::string time_filepath(int n_output_) const

File path of the time file for the given output number.

inline std::string n_output_filepath() const

File path of the file holding the latest output number.

inline void update(const Real dt)

update time parameters

inline void save() const

Save time parameters to file.

inline void load()

Load time parameters from file.

パラメータ:

config --

inline void log() const

Log time parameters to console.

Public Members

Real time

current time

Real tend

end time

Real dt_output

output time interval

int n_step

time step number

int n_output

time step number for output

int n_output_digits

number of digits for output file naming

std::string time_save_dir

directory for saving time-related files

bool io_enabled

flag to enable/disable I/O operations