MeshBuilder Class Reference

#include <meshbuilder.h>

Inheritance diagram for MeshBuilder:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MeshBuilder ()
virtual ~MeshBuilder ()
virtual void init_coord (int nof_node)=0
virtual void set_coord (int i, double x, double y, double z)=0
virtual void finalize_coord ()=0
virtual void init_tet (int nof_tet)=0
virtual void set_tet (int t, int id0, int id1, int id2, int id3, int material)=0
virtual void finalize_tet ()=0
virtual void init_bc (int nof_bc_face)=0
virtual void set_bc (int id0, int id1, int id2, int bc_id)=0
virtual void finalize_bc (int nof_sym)=0

Detailed Description

Base class for all mesh builders (implementation of the Builder pattern)

The reader is required to call the builder functions in the following order:

init_coord set_coord (for each node) finalize_coord init_tet set_tet (for each tetrahedron) finalize_tet init_bc set_bc (for each boundary face) finalize_bc

Author:
Roman Geus

Definition at line 40 of file meshbuilder.h.


Constructor & Destructor Documentation

MeshBuilder::MeshBuilder (  ) 

Definition at line 20 of file meshbuilder.cpp.

MeshBuilder::~MeshBuilder (  )  [virtual]

Definition at line 23 of file meshbuilder.cpp.


Member Function Documentation

virtual void MeshBuilder::finalize_bc ( int  nof_sym  )  [pure virtual]

Set number of symmetry planes

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_bc(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read_boundary().

virtual void MeshBuilder::finalize_coord (  )  [pure virtual]

Finalize coordinate input

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_coord(), HDF5ParallelReader::main(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read().

virtual void MeshBuilder::finalize_tet (  )  [pure virtual]

Finalize tetrahedron input

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_tet(), HDF5ParallelReader::main(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read().

virtual void MeshBuilder::init_bc ( int  nof_bc_face  )  [pure virtual]

Set number of boundary triangles

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::init_bc(), and NetgenReader::read().

virtual void MeshBuilder::init_coord ( int  nof_node  )  [pure virtual]

Set number of mesh nodes (vertices)

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::init_coord(), HDF5ParallelReader::main(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read().

virtual void MeshBuilder::init_tet ( int  nof_tet  )  [pure virtual]

Initialize tetrahedron input.

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::init_tet(), HDF5ParallelReader::main(), NetgenReader::read(), and HDF5ParallelReader::read().

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

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

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_bc(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read_boundary().

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

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

Implemented in BroadcastMeshBuilder, DebugMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_coord(), HDF5ParallelReader::main(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read().

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

Set node ids of nodes forming tetrahedron t

Implemented in BroadcastMeshBuilder, HDF5FileBuilder, and TetMeshBuilder.

Referenced by BroadcastMeshBuilder::finalize_tet(), HDF5ParallelReader::main(), NetgenReader::read(), HDF5Reader::read(), and HDF5ParallelReader::read().


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