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

PartitionedRectangleMesher.h

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

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


Documentation generated by