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"
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);
void ErrorVector unsigned int
This class implements writing meshes and solutions in Ensight's Gold format.
~EnsightIO()=default
Empty destructor.
std::vector< Real > _time_steps
void write_ascii(Real time=0)
const EquationSystems & _equation_systems
void write_scalar_ascii(std::string_view sys, std::string_view var)
void write(Real time=0)
Calls write_ascii() and write_case().
static std::map< ElemType, std::string > build_element_map()
void write_geometry_ascii()
void write_solution_ascii()
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".
std::map< std::string, SystemVars > _system_vars_map
std::string _ensight_file_name
static std::map< ElemType, std::string > _element_map
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.
void write_vector_ascii(std::string_view sys, const std::vector< std::string > &vec, std::string_view var_name)
This is the EquationSystems class.
This class defines an abstract interface for Mesh output.
The libMesh namespace provides an interface to certain functionality in the library.
ElemType
Defines an enum for geometric element types.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Scalars > EnsightScalars
std::vector< Vectors > EnsightVectors
std::vector< std::string > components