Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

BoxMesher.h

Go to the documentation of this file.
00001 #ifndef BOXMESHER_H
00002 #define BOXMESHER_H
00003 
00004 #include "SundanceDefs.h"
00005 #include "MeshGenerator.h"
00006 #include "TSFSmartPtr.h"
00007 
00008 
00009 namespace Sundance
00010 {
00011 
00012   using namespace HCL;
00013   using std::string;
00014 
00015   using std::ostream;
00016 
00017   /**
00018    *\ingroup Geometry
00019    * Mesher for boxes
00020    */
00021 
00022   class BoxMesher : public MeshGeneratorBase
00023     {
00024     public:
00025       /** Mesh the box [ax,ay,az] - [bx,by,bz] with a nx x ny x nz tet
00026        * mesh */
00027       BoxMesher(double ax, double bx, int nx,
00028                 double ay, double by, int ny,
00029                 double az, double bz, int nz)
00030         : ax_(ax), bx_(bx), nx_(nx),
00031         ay_(ay), by_(by), ny_(ny),
00032         az_(az), bz_(bz), nz_(nz) {;}
00033       /** */
00034       virtual ~BoxMesher() {;}
00035 
00036       /** */
00037       virtual Mesh getMesh() const ;
00038 
00039     protected:
00040 
00041       double ax_;
00042       double bx_;
00043       int nx_;
00044 
00045       double ay_;
00046       double by_;
00047       int ny_;
00048 
00049       double az_;
00050       double bz_;
00051       int nz_;
00052     };
00053 
00054 }
00055 
00056 #endif

Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by