MeshInput Class Reference

A class for creating a BezierMesh and BoundaryMesh from a quartet of text files. More...

#include </usr1/tp517/Tumble/trunk/src/tumble/meshio.h>

Collaboration diagram for MeshInput:

[legend]
List of all members.

Public Member Functions

 MeshInput (BezierMesh *_bezier_mesh, BoundaryMesh *_bdry_mesh)
bool read (const char *filename)

Private Member Functions

int read_boundary_vertex_data (BoundaryVertexData *data)
int read_boundary_edge_data (BoundaryEdgeData *data)
int read_boundary_face_data (BoundaryFaceData *data)
int read_bezier_edge_data (BezierEdgeData *data)
int read_bezier_triangle_data (BezierTriangleData *data)

Private Attributes

FILE * node_file
FILE * ele_file
FILE * edge_file
FILE * bdry_file
hashers::hash_map< unsigned,
BoundaryVertex * > 
bdry_verts
hashers::hash_map< unsigned,
BoundaryEdge * > 
bdry_edges
hashers::hash_map< unsigned,
BoundaryFace * > 
bdry_faces
hashers::hash_map< unsigned,
BezierVertex * > 
bez_verts
hashers::hash_map< unsigned,
BezierEdge * > 
bez_edges
BezierMeshbezier_mesh
BoundaryMeshbdry_mesh

Classes

struct  BezierEdgeData
struct  BezierTriangleData
struct  BoundaryEdgeData
struct  BoundaryFaceData
struct  BoundaryVertexData
struct  Node

Detailed Description

A class for creating a BezierMesh and BoundaryMesh from a quartet of text files.

The text file format specifies a quartet of files with respective extentions of ".bdry",".node",".edge", and ".ele"

See File Formats.

Definition at line 31 of file meshio.h.


Constructor & Destructor Documentation

MeshInput::MeshInput ( BezierMesh _bezier_mesh,
BoundaryMesh _bdry_mesh 
) [inline]

Definition at line 108 of file meshio.h.


Member Function Documentation

int MeshInput::read_boundary_vertex_data ( BoundaryVertexData data  )  [private]

Definition at line 230 of file meshio.C.

References bdry_file, FALSE, MeshInput::BoundaryVertexData::idx, MAX_FILE_LINE, MeshInput::BoundaryVertexData::node, and TRUE.

Referenced by read().

int MeshInput::read_boundary_edge_data ( BoundaryEdgeData data  )  [private]

Definition at line 243 of file meshio.C.

References bdry_file, MeshInput::BoundaryEdgeData::closed, MeshInput::BoundaryEdgeData::color, Point2D::coords, MeshInput::BoundaryEdgeData::d, FALSE, MeshInput::BoundaryEdgeData::fixed, MeshInput::BoundaryEdgeData::idx, MeshInput::BoundaryEdgeData::k, MAX_FILE_LINE, MeshInput::BoundaryEdgeData::restlength, TRUE, MeshInput::BoundaryEdgeData::v0, and MeshInput::BoundaryEdgeData::v1.

Referenced by read().

int MeshInput::read_boundary_face_data ( BoundaryFaceData data  )  [private]

Definition at line 305 of file meshio.C.

References bdry_edges, bdry_file, MeshInput::BoundaryFaceData::color, MeshInput::BoundaryFaceData::edges, FALSE, MeshInput::BoundaryFaceData::idx, MAX_FILE_LINE, MeshInput::BoundaryFaceData::min_angle, and TRUE.

Referenced by read().

int MeshInput::read_bezier_edge_data ( BezierEdgeData data  )  [private]

Definition at line 325 of file meshio.C.

References MeshInput::BezierEdgeData::bdry, bzero, edge_file, FALSE, MeshInput::BezierEdgeData::idx, MeshInput::BezierEdgeData::is_bdry, MAX_FILE_LINE, TRUE, MeshInput::BezierEdgeData::u0, MeshInput::BezierEdgeData::u1, MeshInput::BezierEdgeData::v0, MeshInput::BezierEdgeData::v1, and MeshInput::BezierEdgeData::v2.

Referenced by read().

int MeshInput::read_bezier_triangle_data ( BezierTriangleData data  )  [private]

Definition at line 356 of file meshio.C.

References MeshInput::BezierTriangleData::bdry_face, MeshInput::BezierTriangleData::e0, MeshInput::BezierTriangleData::e1, MeshInput::BezierTriangleData::e2, ele_file, FALSE, MeshInput::BezierTriangleData::idx, MeshInput::BezierTriangleData::inverted, MAX_FILE_LINE, and TRUE.

Referenced by read().

bool MeshInput::read ( const char *  filename  ) 

Definition at line 26 of file meshio.C.

References BezierMesh::add_bezier_edge(), BezierMesh::add_bezier_triangle(), BezierMesh::add_bezier_vertex(), BoundaryMesh::add_boundary_edge(), BoundaryMesh::add_boundary_face(), BoundaryMesh::add_boundary_vertex(), MeshInput::Node::added, MeshInput::BezierEdgeData::bdry, bdry_edges, MeshInput::BezierTriangleData::bdry_face, bdry_faces, bdry_file, bdry_mesh, bdry_verts, bez_edges, bez_verts, bezier_mesh, bzero, MeshInput::BoundaryFaceData::color, MeshInput::BoundaryEdgeData::color, MeshInput::Node::d, MeshInput::BoundaryEdgeData::d, MeshInput::BezierTriangleData::e0, MeshInput::BezierTriangleData::e1, MeshInput::BezierTriangleData::e2, edge_file, MeshInput::BoundaryFaceData::edges, ele_file, MeshInput::BoundaryEdgeData::fixed, QBSpline::get_edge_cps(), BoundaryEdge::get_spline(), BoundaryEdge::get_vertex(), MeshInput::BezierEdgeData::idx, MeshInput::BoundaryFaceData::idx, MeshInput::BoundaryEdgeData::idx, MeshInput::BoundaryVertexData::idx, MeshInput::BezierEdgeData::is_bdry, MeshInput::BoundaryEdgeData::k, MAX_FILE_LINE, MAX_FILENAME, MeshInput::BoundaryFaceData::min_angle, MeshInput::BoundaryVertexData::node, node_file, MeshInput::Node::p, read_bezier_edge_data(), read_bezier_triangle_data(), read_boundary_edge_data(), read_boundary_face_data(), read_boundary_vertex_data(), MeshInput::BoundaryEdgeData::restlength, BezierEdge::set_bdry(), BezierVertex::set_bdry(), MeshInput::BezierEdgeData::u0, MeshInput::BezierEdgeData::u1, MeshInput::BezierEdgeData::v0, MeshInput::BoundaryEdgeData::v0, MeshInput::BezierEdgeData::v1, MeshInput::BoundaryEdgeData::v1, and MeshInput::BezierEdgeData::v2.

Referenced by Simulation::read_from_text_file().

Here is the call graph for this function:


Member Data Documentation

FILE* MeshInput::node_file [private]

Definition at line 33 of file meshio.h.

Referenced by read().

FILE* MeshInput::ele_file [private]

Definition at line 34 of file meshio.h.

Referenced by read(), and read_bezier_triangle_data().

FILE* MeshInput::edge_file [private]

Definition at line 35 of file meshio.h.

Referenced by read(), and read_bezier_edge_data().

FILE* MeshInput::bdry_file [private]

Definition at line 36 of file meshio.h.

Referenced by read(), read_boundary_edge_data(), read_boundary_face_data(), and read_boundary_vertex_data().

hashers::hash_map<unsigned, BoundaryVertex*> MeshInput::bdry_verts [private]

Definition at line 54 of file meshio.h.

Referenced by read().

hashers::hash_map<unsigned, BoundaryEdge*> MeshInput::bdry_edges [private]

Definition at line 55 of file meshio.h.

Referenced by read(), and read_boundary_face_data().

hashers::hash_map<unsigned, BoundaryFace*> MeshInput::bdry_faces [private]

Definition at line 56 of file meshio.h.

Referenced by read().

hashers::hash_map<unsigned, BezierVertex*> MeshInput::bez_verts [private]

Definition at line 57 of file meshio.h.

Referenced by read().

hashers::hash_map<unsigned, BezierEdge*> MeshInput::bez_edges [private]

Definition at line 58 of file meshio.h.

Referenced by read().

BezierMesh* MeshInput::bezier_mesh [private]

Definition at line 104 of file meshio.h.

Referenced by read().

BoundaryMesh* MeshInput::bdry_mesh [private]

Definition at line 105 of file meshio.h.

Referenced by read().


The documentation for this class was generated from the following files:
Generated on Mon May 24 09:53:34 2010 for TUMBLE by  doxygen 1.5.2