Go to the documentation of this file.
19 #ifndef LIBMESH_ENSIGHT_IO_H
20 #define LIBMESH_ENSIGHT_IO_H
23 #include "libmesh/libmesh.h"
24 #include "libmesh/mesh_base.h"
25 #include "libmesh/mesh_output.h"
27 #ifdef LIBMESH_FORWARD_DECLARE_ENUMS
33 #include "libmesh/enum_elem_type.h"
45 class EquationSystems;
78 const std::string & scalar_description,
79 const std::string & s);
89 const std::string & vec_description,
90 const std::string & u,
91 const std::string & v);
101 const std::string & vec_description,
102 const std::string & u,
103 const std::string & v,
104 const std::string & w);
118 virtual void write (
const std::string &
name)
override;
146 void write_vector_ascii (
const std::string & sys,
const std::vector<std::string> & vec,
const std::string & var_name);
172 #endif // LIBMESH_ENSIGHT_IO_H
std::vector< Vectors > EnsightVectors
const EquationSystems & _equation_systems
std::string _ensight_file_name
std::vector< Scalars > EnsightScalars
void write_vector_ascii(const std::string &sys, const std::vector< std::string > &vec, const std::string &var_name)
This class implements writing meshes and solutions in Ensight's Gold format.
static std::map< ElemType, std::string > _element_map
The libMesh namespace provides an interface to certain functionality in the library.
std::vector< Real > _time_steps
void add_scalar(const std::string &system, const std::string &scalar_description, const std::string &s)
Tell the EnsightIO interface to output the finite element (not SCALAR) variable named "s".
void write(Real time=0)
Calls write_ascii() and write_case().
void write_geometry_ascii()
void add_vector(const std::string &system, const std::string &vec_description, const std::string &u, const std::string &v)
Tell the EnsightIO interface that the variables (u,v) constitute a vector.
EnsightIO(const std::string &filename, const EquationSystems &eq)
Constructor.
This is the EquationSystems class.
std::map< std::string, SystemVars > _system_vars_map
This class defines an abstract interface for Mesh output.
static std::map< ElemType, std::string > build_element_map()
void write_solution_ascii()
~EnsightIO()
Empty destructor.
std::vector< std::string > components
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void write_scalar_ascii(const std::string &sys, const std::string &var)
void ErrorVector unsigned int
std::string name(const ElemQuality q)
This function returns a string containing some name for q.
void write_ascii(Real time=0)
ElemType
Defines an enum for geometric element types.