20 #ifndef LIBMESH_UCD_IO_H 21 #define LIBMESH_UCD_IO_H 24 #include "libmesh/libmesh_common.h" 25 #include "libmesh/mesh_input.h" 26 #include "libmesh/mesh_output.h" 72 virtual void read (
const std::string &)
override;
78 virtual void write (
const std::string &)
override;
91 const std::vector<Number> & soln,
92 const std::vector<std::string> & names)
override;
136 const std::vector<std::string> & names,
137 const std::vector<Number> & soln);
157 #endif // LIBMESH_UCD_IO_H virtual void read(const std::string &) override
This method implements reading a mesh from a specified file in UCD format.
ElemType
Defines an enum for geometric element types.
UCDIO(const MeshBase &mesh)
Constructor.
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 class defines an abstract interface for Mesh output.
static std::map< ElemType, std::string > _writing_element_map
The libMesh namespace provides an interface to certain functionality in the library.
This is the MeshBase class.
void read_implementation(std::istream &in_stream)
The actual implementation of the read function.
UCDIO(MeshBase &mesh)
Constructor.
This class implements reading & writing meshes in the AVS's UCD format.
static std::map< ElemType, std::string > build_writing_element_map()
void write_nodes(std::ostream &out, const MeshBase &mesh)
Write node information.
static std::map< std::string, ElemType > build_reading_element_map()
void write_interior_elems(std::ostream &out, const MeshBase &mesh)
Write element information.
void write_implementation(std::ostream &out_stream)
The actual implementation of the write function.
static std::map< std::string, ElemType > _reading_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.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified file in UCD format.
void ErrorVector unsigned int
void write_header(std::ostream &out, const MeshBase &mesh, dof_id_type n_elems, unsigned int n_vars)
Write UCD format header.