DOLFINx
0.5.1
DOLFINx C++ interface
|
Output of meshes and functions compatible with the Fides Paraview reader, see https://fides.readthedocs.io/en/latest/paraview/paraview.html. More...
#include <ADIOS2Writers.h>
Public Member Functions | |
FidesWriter (MPI_Comm comm, const std::filesystem::path &filename, std::shared_ptr< const mesh::Mesh > mesh) | |
Create Fides writer for a mesh. More... | |
FidesWriter (MPI_Comm comm, const std::filesystem::path &filename, const ADIOS2Writer::U &u) | |
Create Fides writer for list of functions. More... | |
FidesWriter (const FidesWriter &)=delete | |
FidesWriter (FidesWriter &&file)=default | |
Move constructor. | |
~FidesWriter ()=default | |
Destructor. | |
FidesWriter & | operator= (FidesWriter &&)=default |
Move assignment. | |
FidesWriter & | operator= (const FidesWriter &)=delete |
void | write (double t) |
Write data with a given time. More... | |
Public Member Functions inherited from ADIOS2Writer | |
void | close () |
Close the file. | |
Additional Inherited Members | |
Public Types inherited from ADIOS2Writer | |
using | Fdr = fem::Function< double > |
Typedefs. | |
using | Fdc = fem::Function< std::complex< double > > |
Typedefs. | |
using | U = std::vector< std::variant< std::shared_ptr< const Fdr >, std::shared_ptr< const Fdc > >> |
Typedefs. | |
Protected Member Functions inherited from ADIOS2Writer | |
ADIOS2Writer (MPI_Comm comm, const std::filesystem::path &filename, const std::string &tag, std::shared_ptr< const mesh::Mesh > mesh) | |
Create an ADIOS2-based writer for a mesh. More... | |
ADIOS2Writer (MPI_Comm comm, const std::filesystem::path &filename, const std::string &tag, const U &u) | |
Create an ADIOS2-based writer for a list of functions. More... | |
ADIOS2Writer (ADIOS2Writer &&writer)=default | |
Move constructor. | |
ADIOS2Writer (const ADIOS2Writer &)=delete | |
Copy constructor. | |
~ADIOS2Writer () | |
Destructor. | |
ADIOS2Writer & | operator= (ADIOS2Writer &&writer)=default |
Move assignment. | |
ADIOS2Writer & | operator= (const ADIOS2Writer &)=delete |
Output of meshes and functions compatible with the Fides Paraview reader, see https://fides.readthedocs.io/en/latest/paraview/paraview.html.
FidesWriter | ( | MPI_Comm | comm, |
const std::filesystem::path & | filename, | ||
std::shared_ptr< const mesh::Mesh > | mesh | ||
) |
Create Fides writer for a mesh.
[in] | comm | The MPI communicator to open the file on |
[in] | filename | Name of output file |
[in] | mesh | The mesh. The mesh must a degree 1 mesh. |
FidesWriter | ( | MPI_Comm | comm, |
const std::filesystem::path & | filename, | ||
const ADIOS2Writer::U & | u | ||
) |
Create Fides writer for list of functions.
[in] | comm | The MPI communicator |
[in] | filename | Name of output file |
[in] | u | List of functions. The functions must (1) share the same mesh (degree 1) and (2) be degree 1 Lagrange. |
u
must share the same Mesh void write | ( | double | t | ) |
Write data with a given time.
[in] | t | The time step |