Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
PVDHandler Class Reference

#include <pvd_handler.h>

Public Member Functions

void save (const std::string &filename) const
void read (const std::string &filename)
void append (double time, const std::string &pvtu_filename)

Public Attributes

std::vector< std::pair< double, std::string > > times_and_names

Detailed Description

The PVDHandler class manages the storage of the information required to write pvd file. It is particularly necessary for simulations which must be restarted from checkpoint since it manages the continuity of the pvd output.

Definition at line 16 of file pvd_handler.h.

Member Function Documentation

◆ append()

void PVDHandler::append ( double time,
const std::string & pvtu_filename )
inline

Definition at line 36 of file pvd_handler.h.

References times_and_names.

◆ read()

void PVDHandler::read ( const std::string & filename)

read Reads the content of a pvd times_and_names checpoint

Parameters
filenameName of the file frin which the PVDHandler content is read

Definition at line 25 of file pvd_handler.cc.

References append(), check_file_exists(), and times_and_names.

◆ save()

void PVDHandler::save ( const std::string & filename) const

save Saves the content of the pvd times_and_names to a file

Parameters
filenameName of the file to which the PVDHandler content is save

Definition at line 12 of file pvd_handler.cc.

References times_and_names.

Member Data Documentation

◆ times_and_names

std::vector<std::pair<double, std::string> > PVDHandler::times_and_names

Definition at line 43 of file pvd_handler.h.


The documentation for this class was generated from the following files: