![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <visualization.h>
Public Member Functions | |
| Visualization () | |
| void | build_patches (Particles::ParticleHandler< dim > &particle_handler, const std::vector< std::pair< std::string, int > > &properties) |
| void | print_xyz (dealii::Particles::ParticleHandler< dim > &particle_handler, const MPI_Comm &mpi_communicator, const ConditionalOStream &pcout) |
| void | print_intermediate_format (const Vector< float > &data_to_print, const DoFHandler< dim > &background_dh, const MPI_Comm &mpi_communicator, const ConditionalOStream &pcout) |
| ~Visualization () | |
Private Member Functions | |
| virtual const std::vector< DataOutBase::Patch< 0, dim > > & | get_patches () const override |
| virtual std::vector< std::string > | get_dataset_names () const override |
| virtual std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > | get_nonscalar_data_ranges () const override |
Private Attributes | |
| std::vector< DataOutBase::Patch< 0, dim > > | patches |
| std::vector< std::string > | dataset_names |
| std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > | vector_datasets |
| std::vector< std::pair< std::string, int > > | properties_to_write |
Building patches of particle properties for visualization. This function is taken from Aspect and deal.ii and implemented here.
| dim | An integer that denotes the number of spatial dimensions. |
| PropertiesIndex | Index of the properties used within the ParticleHandler. |
Definition at line 27 of file visualization.h.
|
default |
|
default |
| void Visualization< dim, PropertiesIndex >::build_patches | ( | Particles::ParticleHandler< dim > & | particle_handler, |
| const std::vector< std::pair< std::string, int > > & | properties ) |
Build the patches of properties of particles for visualization.
| particle_handler | The particle handler of active particles for visualization. |
| properties | Properties of particles for visualization. This is a vector of pairs and each pair contains the property name as the first element and the size of the property as the second element. For vectors only the size of the first element of the vector is defined equal to the dimension. |
Definition at line 15 of file visualization.cc.
References dataset_names, patches, and vector_datasets.
|
overrideprivatevirtual |
Implementation of the corresponding function of the base class.
Definition at line 209 of file visualization.cc.
References dataset_names.
|
overrideprivatevirtual |
Definition at line 220 of file visualization.cc.
References vector_datasets.
|
overrideprivatevirtual |
Implementation of the corresponding function of the base class.
Definition at line 202 of file visualization.cc.
References patches.
| void Visualization< dim, PropertiesIndex >::print_intermediate_format | ( | const Vector< float > & | data_to_print, |
| const DoFHandler< dim > & | background_dh, | ||
| const MPI_Comm & | mpi_communicator, | ||
| const ConditionalOStream & | pcout ) |
Print the data of particles in the deal.II intermediate format.
| data_to_print | The vector of data to be printed. |
| background_dh | The DoFHandler of the background grid. |
| mpi_communicator | The MPI communicator. |
| pcout | Printing in parallel. |
Definition at line 151 of file visualization.cc.
| void Visualization< dim, PropertiesIndex >::print_xyz | ( | dealii::Particles::ParticleHandler< dim > & | particle_handler, |
| const MPI_Comm & | mpi_communicator, | ||
| const ConditionalOStream & | pcout ) |
Print the data of particles in the xyz format.
| particle_handler | The particle handler of active particles. |
| pcout | Printing in parallel. |
Definition at line 90 of file visualization.cc.
References DEM::has_thermal_properties.
|
private |
A list of field names for all data components stored in patches.
Definition at line 103 of file visualization.h.
|
private |
Output information that is filled by build_patches() and written by the write function of the base class.
Definition at line 98 of file visualization.h.
|
private |
Particle properties that are written in output files.
Definition at line 118 of file visualization.h.
|
private |
Store which of the data fields are vectors.
Definition at line 113 of file visualization.h.