GLVis
v4.2
Accurate and flexible finite element visualization
|
#include <stream_reader.hpp>
Public Member Functions | |
void | Extrude1DMeshAndSolution () |
Helper function for visualizing 1D data. More... | |
void | SetMeshSolution () |
Set a (checkerboard) solution when only the mesh is given. More... | |
int | ReadStream (std::istream &is, const std::string &data_type) |
bool | SetNewMeshAndSolution (StreamState new_state, VisualizationScene *vs) |
Public Attributes | |
mfem::Vector | sol |
mfem::Vector | solu |
mfem::Vector | solv |
mfem::Vector | solw |
mfem::Vector | normals |
std::string | keys |
std::unique_ptr< mfem::Mesh > | mesh |
std::unique_ptr < mfem::GridFunction > | grid_f |
int | is_gf {0} |
bool | fix_elem_orient {false} |
bool | save_coloring {false} |
Definition at line 20 of file stream_reader.hpp.
void StreamState::Extrude1DMeshAndSolution | ( | ) |
Helper function for visualizing 1D data.
Definition at line 20 of file stream_reader.cpp.
int StreamState::ReadStream | ( | std::istream & | is, |
const std::string & | data_type | ||
) |
Definition at line 120 of file stream_reader.cpp.
void StreamState::SetMeshSolution | ( | ) |
Set a (checkerboard) solution when only the mesh is given.
Definition at line 66 of file stream_reader.cpp.
bool StreamState::SetNewMeshAndSolution | ( | StreamState | new_state, |
VisualizationScene * | vs | ||
) |
Sets a new mesh and solution from another StreamState object, and updates the given VisualizationScene pointer with the new data.
Mesh space and grid function dimensions must both match the original dimensions of the current StreamState. If there is a mismatch in either value, the function will return false, and the mesh/solution will not be updated.
Definition at line 364 of file stream_reader.cpp.
bool StreamState::fix_elem_orient {false} |
Definition at line 27 of file stream_reader.hpp.
std::unique_ptr<mfem::GridFunction> StreamState::grid_f |
Definition at line 25 of file stream_reader.hpp.
int StreamState::is_gf {0} |
Definition at line 26 of file stream_reader.hpp.
std::string StreamState::keys |
Definition at line 23 of file stream_reader.hpp.
std::unique_ptr<mfem::Mesh> StreamState::mesh |
Definition at line 24 of file stream_reader.hpp.
mfem::Vector StreamState::normals |
Definition at line 22 of file stream_reader.hpp.
bool StreamState::save_coloring {false} |
Definition at line 28 of file stream_reader.hpp.
mfem::Vector StreamState::sol |
Definition at line 22 of file stream_reader.hpp.
mfem::Vector StreamState::solu |
Definition at line 22 of file stream_reader.hpp.
mfem::Vector StreamState::solv |
Definition at line 22 of file stream_reader.hpp.
mfem::Vector StreamState::solw |
Definition at line 22 of file stream_reader.hpp.