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

QuadMesher.h

Go to the documentation of this file.
00001 #ifndef QUADMESHER_H
00002 #define QUADMESHER_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 QuadMesher : public MeshGeneratorBase
00023     {
00024     public:
00025       /** Mesh the rectangle [ax,ay] - [bx,by] with a nx by ny
00026        * brick grid. */
00027       QuadMesher(double ax, double bx, int nx,
00028                  double ay, double by, int ny)
00029         : ax_(ax), bx_(bx), nx_(nx),
00030         ay_(ay), by_(by), ny_(ny){;}
00031       /** */
00032       virtual ~QuadMesher() {;}
00033 
00034       /** */
00035       virtual Mesh getMesh() const ;
00036 
00037     protected:
00038 
00039       double ax_;
00040       double bx_;
00041       int nx_;
00042 
00043       double ay_;
00044       double by_;
00045       int ny_;
00046 
00047     };
00048 
00049 }
00050 
00051 #endif

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


Documentation generated by