|
libMesh
|
This class is responsible for reading an unstructured, triangulated surface in the standard OFF OOGL format. More...
#include <off_io.h>
Public Member Functions | |
| OFFIO (MeshBase &) | |
| Constructor. | |
| virtual void | read (const std::string &name) override |
| Reads in an OFF OOGL data file based on the string you pass it. | |
| bool | is_parallel_format () const |
| Returns true iff this mesh file format and input class are parallelized, so that all processors can read their share of the data at once. | |
Protected Member Functions | |
| MeshBase & | mesh () |
| void | set_n_partitions (unsigned int n_parts) |
| Sets the number of partitions in the mesh. | |
| void | skip_comment_lines (std::istream &in, const char comment_start) |
Reads input from in, skipping all the lines that start with the character comment_start. | |
Protected Attributes | |
| std::vector< bool > | elems_of_dimension |
| A vector of bools describing what dimension elements have been encountered when reading a mesh. | |
Private Member Functions | |
| void | read_stream (std::istream &in) |
| Implementation of the read() function. | |
Private Attributes | |
| MeshBase * | _obj |
| A pointer to a non-const object object. | |
| const bool | _is_parallel_format |
| Flag specifying whether this format is parallel-capable. | |
This class is responsible for reading an unstructured, triangulated surface in the standard OFF OOGL format.
Reads OOF OOGL triangulated surface files.
|
inlineexplicit |
|
inlineinherited |
Returns true iff this mesh file format and input class are parallelized, so that all processors can read their share of the data at once.
Definition at line 87 of file mesh_input.h.
|
inlineprotectedinherited |
Definition at line 94 of file mesh_input.h.
|
overridevirtual |
Reads in an OFF OOGL data file based on the string you pass it.
Implements libMesh::MeshInput< MeshBase >.
Definition at line 35 of file off_io.C.
References read_stream().
Referenced by libMesh::NameBasedIO::read().
|
private |
Implementation of the read() function.
This function is called by the public interface function and implements reading the file.
Definition at line 44 of file off_io.C.
References libMesh::MeshBase::add_elem(), libMesh::MeshBase::add_point(), libMesh::Elem::build(), libMesh::MeshBase::clear(), libMesh::EDGE2, libMesh::libmesh_assert(), libMesh::MeshInput< MT >::mesh(), libMesh::MeshInput< MeshBase >::mesh(), libMesh::MeshBase::node_ptr(), libMesh::Real, libMesh::MeshBase::set_mesh_dimension(), and libMesh::TRI3.
Referenced by read().
|
inlineprotectedinherited |
Sets the number of partitions in the mesh.
Typically this gets done by the partitioner, but some parallel file formats begin "pre-partitioned".
Definition at line 101 of file mesh_input.h.
|
protectedinherited |
Reads input from in, skipping all the lines that start with the character comment_start.
Definition at line 113 of file mesh_input.h.
|
privateinherited |
Flag specifying whether this format is parallel-capable.
If this is false (default) I/O is only permitted when the mesh has been serialized.
Definition at line 130 of file mesh_input.h.
|
privateinherited |
A pointer to a non-const object object.
This allows us to read the object from file.
Definition at line 123 of file mesh_input.h.
|
protectedinherited |
A vector of bools describing what dimension elements have been encountered when reading a mesh.
Definition at line 107 of file mesh_input.h.