BroadcastMeshBuilder Class Reference

#include <broadcastmeshbuilder.h>

Inheritance diagram for BroadcastMeshBuilder:

Inheritance graph
[legend]
Collaboration diagram for BroadcastMeshBuilder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BroadcastMeshBuilder (const Epetra_Comm *comm, MeshBuilder *builder)
 ~BroadcastMeshBuilder ()
virtual void receiver ()
virtual void init_coord (int nof_node)
virtual void set_coord (int i, double x, double y, double z)
virtual void finalize_coord ()
virtual void init_tet (int nof_tet)
virtual void set_tet (int t, int id0, int id1, int id2, int id3, int material)
virtual void finalize_tet ()
virtual void init_bc (int nof_bc_face)
virtual void set_bc (int id0, int id1, int id2, int bc_id)
virtual void finalize_bc (int nof_sym)

Private Attributes

MeshBuilder_builder
const Epetra_Comm * _comm
int _nof_node
int _nof_tet
int _nof_bc_face
int _bc_face_counter
int _nof_sym
double * _coord
int * _tet_node
int * _bc_face
int * _material

Detailed Description

Intermediate builder broadacsting mesh data to all processors and calling a second builder for generating the mesh data structures.
Author:
Roman Geus

Definition at line 29 of file broadcastmeshbuilder.h.


Constructor & Destructor Documentation

BroadcastMeshBuilder::BroadcastMeshBuilder ( const Epetra_Comm *  comm,
MeshBuilder builder 
)

Definition at line 21 of file broadcastmeshbuilder.cpp.

BroadcastMeshBuilder::~BroadcastMeshBuilder (  ) 

Definition at line 26 of file broadcastmeshbuilder.cpp.


Member Function Documentation

void BroadcastMeshBuilder::finalize_bc ( int  nof_sym  )  [virtual]

Set number of symmetry planes

Implements MeshBuilder.

Definition at line 118 of file broadcastmeshbuilder.cpp.

References _bc_face, _builder, _comm, _nof_bc_face, _nof_sym, MeshBuilder::finalize_bc(), and MeshBuilder::set_bc().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::finalize_coord (  )  [virtual]

Finalize coordinate input

Implements MeshBuilder.

Definition at line 55 of file broadcastmeshbuilder.cpp.

References _builder, _comm, _coord, _nof_node, MeshBuilder::finalize_coord(), and MeshBuilder::set_coord().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::finalize_tet (  )  [virtual]

Finalize tetrahedron input

Implements MeshBuilder.

Definition at line 87 of file broadcastmeshbuilder.cpp.

References _builder, _comm, _material, _nof_tet, _tet_node, MeshBuilder::finalize_tet(), and MeshBuilder::set_tet().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::init_bc ( int  nof_bc_face  )  [virtual]

Set number of boundary triangles

Implements MeshBuilder.

Definition at line 100 of file broadcastmeshbuilder.cpp.

References _bc_face, _builder, _comm, _nof_bc_face, and MeshBuilder::init_bc().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::init_coord ( int  nof_node  )  [virtual]

Set number of mesh nodes (vertices)

Implements MeshBuilder.

Definition at line 38 of file broadcastmeshbuilder.cpp.

References _builder, _comm, _coord, _nof_node, and MeshBuilder::init_coord().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::init_tet ( int  nof_tet  )  [virtual]

Set number of tetrahedra in mesh.

Implements MeshBuilder.

Definition at line 67 of file broadcastmeshbuilder.cpp.

References _builder, _comm, _material, _nof_tet, _tet_node, and MeshBuilder::init_tet().

Referenced by receiver().

Here is the call graph for this function:

void BroadcastMeshBuilder::receiver (  )  [virtual]

Reader substitute for slave processors

Definition at line 29 of file broadcastmeshbuilder.cpp.

References finalize_bc(), finalize_coord(), finalize_tet(), init_bc(), init_coord(), and init_tet().

Referenced by main().

Here is the call graph for this function:

void BroadcastMeshBuilder::set_bc ( int  id0,
int  id1,
int  id2,
int  bc_id 
) [virtual]

Assign boundary condition bc_id to boundary triangle formed of nodes id0, id1 and id2.

Implements MeshBuilder.

Definition at line 110 of file broadcastmeshbuilder.cpp.

References _bc_face, and _bc_face_counter.

void BroadcastMeshBuilder::set_coord ( int  i,
double  x,
double  y,
double  z 
) [virtual]

Set x-, y- and z-coordinate of node i.

Implements MeshBuilder.

Definition at line 48 of file broadcastmeshbuilder.cpp.

References _coord.

void BroadcastMeshBuilder::set_tet ( int  t,
int  id0,
int  id1,
int  id2,
int  id3,
int  material 
) [virtual]

Set node ids of nodes forming tetrahedron t

Implements MeshBuilder.

Definition at line 78 of file broadcastmeshbuilder.cpp.

References _material, and _tet_node.


Member Data Documentation

int* BroadcastMeshBuilder::_bc_face [private]

Definition at line 64 of file broadcastmeshbuilder.h.

Referenced by finalize_bc(), init_bc(), and set_bc().

int BroadcastMeshBuilder::_bc_face_counter [private]

Definition at line 60 of file broadcastmeshbuilder.h.

Referenced by set_bc().

MeshBuilder* BroadcastMeshBuilder::_builder [private]

Definition at line 55 of file broadcastmeshbuilder.h.

Referenced by finalize_bc(), finalize_coord(), finalize_tet(), init_bc(), init_coord(), and init_tet().

const Epetra_Comm* BroadcastMeshBuilder::_comm [private]

Definition at line 56 of file broadcastmeshbuilder.h.

Referenced by finalize_bc(), finalize_coord(), finalize_tet(), init_bc(), init_coord(), and init_tet().

double* BroadcastMeshBuilder::_coord [private]

Definition at line 62 of file broadcastmeshbuilder.h.

Referenced by finalize_coord(), init_coord(), and set_coord().

int* BroadcastMeshBuilder::_material [private]

Definition at line 65 of file broadcastmeshbuilder.h.

Referenced by finalize_tet(), init_tet(), and set_tet().

int BroadcastMeshBuilder::_nof_bc_face [private]

Definition at line 59 of file broadcastmeshbuilder.h.

Referenced by finalize_bc(), and init_bc().

int BroadcastMeshBuilder::_nof_node [private]

Definition at line 57 of file broadcastmeshbuilder.h.

Referenced by finalize_coord(), and init_coord().

int BroadcastMeshBuilder::_nof_sym [private]

Definition at line 61 of file broadcastmeshbuilder.h.

Referenced by finalize_bc().

int BroadcastMeshBuilder::_nof_tet [private]

Definition at line 58 of file broadcastmeshbuilder.h.

Referenced by finalize_tet(), and init_tet().

int* BroadcastMeshBuilder::_tet_node [private]

Definition at line 63 of file broadcastmeshbuilder.h.

Referenced by finalize_tet(), init_tet(), and set_tet().


The documentation for this class was generated from the following files:
Generated on Fri Oct 26 13:35:16 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7