Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
solutions_output.h File Reference
#include <core/pvd_handler.h>
#include <deal.II/numerics/data_out.h>
#include <deal.II/numerics/data_out_faces.h>
Include dependency graph for solutions_output.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<int dim, int spacedim = dim>
void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< dim, spacedim > &data_out, const std::string &folder, const std::string &file_prefix, const double time, const unsigned int iter, const unsigned int group_files, const MPI_Comm &mpi_communicator, const unsigned int digits=5)
template<int dim>
void write_boundaries_vtu (const DataOutFaces< dim > &data_out, const std::string &folder, const double time, const unsigned int iter, const MPI_Comm &mpi_communicator, const std::string &file_prefix=std::string("boundaries"), const unsigned int digits=5)
template<int dim>
void write_boundaries_vtu_and_pvd (PVDHandler &pvd_handler_boundary, const DataOutFaces< dim > &data_out_faces, const std::string &folder, const double time, const unsigned int iter, const unsigned int group_files, const MPI_Comm &mpi_communicator, const std::string &file_prefix=std::string("boundaries"), const unsigned int digits=5)

Function Documentation

◆ write_boundaries_vtu()

template<int dim>
void write_boundaries_vtu ( const DataOutFaces< dim > & data_out,
const std::string & folder,
const double time,
const unsigned int iter,
const MPI_Comm & mpi_communicator,
const std::string & file_prefix = std::string("boundaries"),
const unsigned int digits = 5 )

Output the Data Out Faces to a single vtu file This function outputs the DataOutFaces to a vtu file.

Parameters
[in]data_outthe DataOutFaces class to which the data has been attached
[in]foldera string that contains the path where the results are to be saved
[in]timethe time associated with the file
[in]iterthe iteration number associated with the file
[in]mpi_communicatorThe mpi communicator
[in]file_prefixa string that stores the name of the file without the iteration number and the extension
[in]digitsAn optional parameter that specifies the amount of digit used to store iteration number in the file name

Definition at line 74 of file solutions_output.cc.

◆ write_boundaries_vtu_and_pvd()

template<int dim>
void write_boundaries_vtu_and_pvd ( PVDHandler & pvd_handler_boundary,
const DataOutFaces< dim > & data_out_faces,
const std::string & folder,
const double time,
const unsigned int iter,
const unsigned int group_files,
const MPI_Comm & mpi_communicator,
const std::string & file_prefix = std::string("boundaries"),
const unsigned int digits = 5 )

Output the Data Out Faces as vtu files, with a pvtu file and a pvd to store the timing This function is used only when the mortar feature is enabled, since the rotating domain changes its boundary position over time.

Parameters
[in]pvd_handlera PVDHandler to store the information about the file name and time associated with it
[in]data_out_facesthe DataOutFaces class to which the data has been attached
[in]foldera string that contains the path where the results are to be saved
[in]timethe time associated with the file
[in]iterthe iteration number associated with the file
[in]group_filesthe number of vtu files that will be generated.
[in]mpi_communicatorThe mpi communicator
[in]file_prefixa string that stores the name of the file without the iteration number and the extension
[in]digitsAn optional parameter that specifies the amount of digit used to store iteration number in the file name
[in]file_prefixa string that stores the name of the file without the iteration number and the extension.
[in]digitsAn optional parameter that specifies the amount of digit used to store iteration number in the file name

Definition at line 98 of file solutions_output.cc.

References PVDHandler::append(), and PVDHandler::times_and_names.

◆ write_vtu_and_pvd()

template<int dim, int spacedim = dim>
void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< dim, spacedim > & data_out,
const std::string & folder,
const std::string & file_prefix,
const double time,
const unsigned int iter,
const unsigned int group_files,
const MPI_Comm & mpi_communicator,
const unsigned int digits = 5 )

Output the data out to "group_files" vtu files, with a pvtu file and a pvd to store the timing This function outputs the data out to "group_files" vtu file that are orchestrated by a .pvtu file. An additional pvd file takes care of storing the time associated with each .pvtu file.

Parameters
[in]pvd_handlera PVDHandler to store the information about the file name and time associated with it
[in]data_outthe DataOut class to which the data has been attached
[in]foldera string that contains the path where the results are to be saved
[in]file_prefixa string that stores the name of the file without the iteration number and the extension
[in]timethe time associated with the file
[in]iterthe iteration number associated with the file
[in]group_filesthe number of vtu files that will be generated.
[in]mpi_communicatorThe mpi communicator
[in]digitsAn optional parameter that specifies the amount of digit used to store iteration number in the file name

Definition at line 17 of file solutions_output.cc.

References PVDHandler::append(), and PVDHandler::times_and_names.