Go to the documentation of this file.
23 #include "libmesh/matlab_io.h"
24 #include "libmesh/mesh_base.h"
25 #include "libmesh/face_tri3.h"
35 std::ifstream in (
name.c_str());
46 libmesh_assert_equal_to (this->
mesh().processor_id(), 0);
58 libmesh_error_msg(
"Cannot open dimension 2 mesh file when configured without 2D support.");
64 unsigned int nNodes=0, nElem=0;
70 libmesh_assert_greater (nNodes, 0);
71 libmesh_assert_greater (nElem, 0);
75 Real x=0., y=0., z=0.;
77 for (
unsigned int i=0; i<nNodes; i++)
88 unsigned int node=0, dummy=0;
90 for (
unsigned int i=0; i<nElem; i++)
96 for (
unsigned int n=0; n<3; n++)
virtual void read(const std::string &name) override
Reads in a matlab data file based on the string you pass it.
The libMesh namespace provides an interface to certain functionality in the library.
void read_stream(std::istream &in)
Implementation of the read() function.
virtual const Node * node_ptr(const dof_id_type i) const =0
This is the MeshBase class.
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual Node *& set_node(const unsigned int i)
virtual Elem * add_elem(Elem *e)=0
Add elem e to the end of the element array.
The Tri3 is an element in 2D composed of 3 nodes.
This is the base class from which all geometric element types are derived.
virtual Node * add_point(const Point &p, const dof_id_type id=DofObject::invalid_id, const processor_id_type proc_id=DofObject::invalid_processor_id)=0
Add a new Node at Point p to the end of the vertex array, with processor_id procid.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void clear()
Deletes all the element and node data that is currently stored.
void set_mesh_dimension(unsigned char d)
Resets the logical dimension of the mesh.
std::string name(const ElemQuality q)
This function returns a string containing some name for q.