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

AffineBrickMesher.h

Go to the documentation of this file.
00001 #ifndef AFFINEBRICKMESHER_H
00002 #define AFFINEBRICKMESHER_H
00003 
00004 #include "SundanceDefs.h"
00005 #include "MeshGenerator.h"
00006 #include "TSFSmartPtr.h"
00007 
00008 
00009 namespace Sundance
00010 {
00011 
00012   using namespace TSF;
00013   using std::string;
00014 
00015   using std::ostream;
00016 
00017   /**
00018    *\ingroup Geometry
00019    * Mesher for bricks.
00020    */
00021 
00022   class AffineBrickMesher : public MeshGeneratorBase
00023     {
00024     public:
00025       /** Mesh the rectangle [ax,ay,az] - [bx,by,bz] with a nx by ny by nz
00026        * brick grid. */
00027       AffineBrickMesher(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 ~AffineBrickMesher() {;}
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