Go to the documentation of this file.
20 #ifndef LIBMESH_UCD_IO_H
21 #define LIBMESH_UCD_IO_H
27 #include "libmesh/libmesh_common.h"
28 #include "libmesh/mesh_input.h"
29 #include "libmesh/mesh_output.h"
31 #ifdef LIBMESH_FORWARD_DECLARE_ENUMS
37 #include "libmesh/enum_elem_type.h"
80 virtual void read (
const std::string &)
override;
86 virtual void write (
const std::string &)
override;
99 const std::vector<Number> & soln,
100 const std::vector<std::string> & names)
override;
144 const std::vector<std::string> & names,
145 const std::vector<Number> & soln);
165 #endif // LIBMESH_UCD_IO_H
static std::map< ElemType, std::string > _writing_element_map
void write_implementation(std::ostream &out_stream)
The actual implementation of the write function.
UCDIO(const MeshBase &mesh)
Constructor.
void read_implementation(std::istream &in_stream)
The actual implementation of the read function.
The libMesh namespace provides an interface to certain functionality in the library.
void write_soln(std::ostream &out, const MeshBase &mesh, const std::vector< std::string > &names, const std::vector< Number > &soln)
Writes all nodal solution variables.
This is the MeshBase class.
static std::map< std::string, ElemType > build_reading_element_map()
static std::map< std::string, ElemType > _reading_element_map
virtual void read(const std::string &) override
This method implements reading a mesh from a specified file in UCD format.
This class defines an abstract interface for Mesh output.
void write_header(std::ostream &out, const MeshBase &mesh, dof_id_type n_elems, unsigned int n_vars)
Write UCD format header.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified file in UCD format.
UCDIO(MeshBase &mesh)
Constructor.
static std::map< ElemType, std::string > build_writing_element_map()
virtual void write_nodal_data(const std::string &fname, const std::vector< Number > &soln, const std::vector< std::string > &names) override
This method implements writing a mesh and solution to a specified file in UCD format.
void write_interior_elems(std::ostream &out, const MeshBase &mesh)
Write element information.
This class implements reading & writing meshes in the AVS's UCD format.
void ErrorVector unsigned int
void write_nodes(std::ostream &out, const MeshBase &mesh)
Write node information.
ElemType
Defines an enum for geometric element types.