Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
solutions_output.cc File Reference
#include <deal.II/numerics/data_out.h>
#include <core/pvd_handler.h>
#include <core/solutions_output.h>
#include <fstream>
Include dependency graph for solutions_output.cc:

Go to the source code of this file.

Functions

template<int dim, int spacedim>
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)
template<int dim>
void write_boundaries_vtu (const DataOutFaces< dim > &data_out_faces, const std::string &folder, const double, const unsigned int iter, const MPI_Comm &mpi_communicator, const std::string &file_prefix, const unsigned int digits)
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, const unsigned int digits)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 1, 2 > &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)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 2, 2 > &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)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 2, 3 > &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)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 3, 3 > &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)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 0, 2 > &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)
template void write_vtu_and_pvd (PVDHandler &pvd_handler, const DataOutInterface< 0, 3 > &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)
template void write_boundaries_vtu (const DataOutFaces< 2 > &data_out_faces, const std::string &folder, const double time, const unsigned int iter, const MPI_Comm &mpi_communicator, const std::string &file_prefix, const unsigned int digits)
template void write_boundaries_vtu (const DataOutFaces< 3 > &data_out_faces, const std::string &folder, const double time, const unsigned int iter, const MPI_Comm &mpi_communicator, const std::string &file_prefix, const unsigned int digits)
template void write_boundaries_vtu_and_pvd (PVDHandler &pvd_handler_boundary, const DataOutFaces< 2 > &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, const unsigned int digits)
template void write_boundaries_vtu_and_pvd (PVDHandler &pvd_handler_boundary, const DataOutFaces< 3 > &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, const unsigned int digits)

Function Documentation

◆ write_boundaries_vtu() [1/3]

template void write_boundaries_vtu ( const DataOutFaces< 2 > & data_out_faces,
const std::string & folder,
const double time,
const unsigned int iter,
const MPI_Comm & mpi_communicator,
const std::string & file_prefix,
const unsigned int digits )

◆ write_boundaries_vtu() [2/3]

template void write_boundaries_vtu ( const DataOutFaces< 3 > & data_out_faces,
const std::string & folder,
const double time,
const unsigned int iter,
const MPI_Comm & mpi_communicator,
const std::string & file_prefix,
const unsigned int digits )

◆ write_boundaries_vtu() [3/3]

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() [1/3]

template void write_boundaries_vtu_and_pvd ( PVDHandler & pvd_handler_boundary,
const DataOutFaces< 2 > & 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,
const unsigned int digits )

◆ write_boundaries_vtu_and_pvd() [2/3]

template void write_boundaries_vtu_and_pvd ( PVDHandler & pvd_handler_boundary,
const DataOutFaces< 3 > & 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,
const unsigned int digits )

◆ write_boundaries_vtu_and_pvd() [3/3]

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() [1/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 0, 2 > & 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 )

◆ write_vtu_and_pvd() [2/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 0, 3 > & 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 )

◆ write_vtu_and_pvd() [3/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 1, 2 > & 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 )

◆ write_vtu_and_pvd() [4/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 2, 2 > & 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 )

◆ write_vtu_and_pvd() [5/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 2, 3 > & 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 )

◆ write_vtu_and_pvd() [6/7]

template void write_vtu_and_pvd ( PVDHandler & pvd_handler,
const DataOutInterface< 3, 3 > & 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 )

◆ write_vtu_and_pvd() [7/7]

template<int dim, int spacedim>
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.