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

RectangleMesher.h

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

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


Documentation generated by