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" 36 class EquationSystems;
70 std::string_view scalar_description,
81 std::string_view vec_description,
93 std::string_view vec_description,
110 virtual void write (
const std::string &
name)
override;
138 void write_vector_ascii (std::string_view sys,
const std::vector<std::string> & vec, std::string_view var_name);
164 #endif // LIBMESH_ENSIGHT_IO_H std::string name(const ElemQuality q)
This function returns a string containing some name for q.
void write_solution_ascii()
ElemType
Defines an enum for geometric element types.
void write_geometry_ascii()
void add_vector(const std::string &system, std::string_view vec_description, std::string u, std::string v)
Tell the EnsightIO interface that the variables (u,v) constitute a vector.
std::string _ensight_file_name
This is the EquationSystems class.
EnsightIO(const std::string &filename, const EquationSystems &eq)
Constructor.
static std::map< ElemType, std::string > build_element_map()
std::vector< std::string > components
std::vector< Scalars > EnsightScalars
std::map< std::string, SystemVars > _system_vars_map
~EnsightIO()=default
Empty destructor.
This class defines an abstract interface for Mesh output.
The libMesh namespace provides an interface to certain functionality in the library.
static std::map< ElemType, std::string > _element_map
void write(Real time=0)
Calls write_ascii() and write_case().
const EquationSystems & _equation_systems
This class implements writing meshes and solutions in Ensight's Gold format.
void write_scalar_ascii(std::string_view sys, std::string_view var)
void add_scalar(const std::string &system, std::string_view scalar_description, std::string_view s)
Tell the EnsightIO interface to output the finite element (not SCALAR) variable named "s"...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void write_vector_ascii(std::string_view sys, const std::vector< std::string > &vec, std::string_view var_name)
std::vector< Real > _time_steps
void write_ascii(Real time=0)
void ErrorVector unsigned int
std::vector< Vectors > EnsightVectors