Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef SUNDANCE_PEANOMESHER3D_H_
00040 #define SUNDANCE_PEANOMESHER3D_H_
00041
00042 #include "SundanceDefs.hpp"
00043 #include "SundanceMeshSourceBase.hpp"
00044 #include "SundancePeanoMesh3D.hpp"
00045
00046
00047 namespace Sundance
00048 {
00049 class PeanoMesher3D : public MeshSourceBase
00050 {
00051 public:
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 PeanoMesher3D(double position_x, double position_y, double position_z,
00063 double offset_x , double offset_y, double offset_z,
00064 double resolution,
00065 const MeshType& meshType,
00066 const MPIComm& comm = MPIComm::world())
00067 :
00068 MeshSourceBase(meshType, 0, comm),
00069 _position_x(position_x), _position_y(position_y), _position_z(position_z),
00070 _offset_x(offset_x), _offset_y(offset_y), _offset_z(offset_z),
00071 _resolution(resolution) {;}
00072
00073
00074
00075 PeanoMesher3D(const ParameterList& params);
00076
00077
00078 virtual ~PeanoMesher3D() {;}
00079
00080
00081 virtual std::string description() const
00082 {return "SundancePeanoMesher[pos x =" + Teuchos::toString(_position_x)
00083 + ", pos y=" + Teuchos::toString(_position_y)
00084 + ", pos z=" + Teuchos::toString(_position_z)
00085 + ", offset x=" + Teuchos::toString(_offset_x)
00086 + ", offset y=" + Teuchos::toString(_offset_y)
00087 + ", offset z=" + Teuchos::toString(_offset_z)
00088 + ", resolution=" + Teuchos::toString(_resolution)+ "]";}
00089
00090
00091
00092 virtual RCP<MeshSourceBase> getRcp() {return rcp(this);}
00093
00094
00095 protected:
00096
00097
00098 virtual Mesh fillMesh() const ;
00099
00100 private:
00101
00102
00103 double _position_x;
00104
00105 double _position_y;
00106
00107 double _position_z;
00108
00109 double _offset_x;
00110
00111 double _offset_y;
00112
00113 double _offset_z;
00114
00115 double _resolution;
00116
00117
00118 };
00119 }
00120 #endif