|
Sierra Toolkit Version of the Day
|
00001 /*------------------------------------------------------------------------*/ 00002 /* Copyright 2010 Sandia Corporation. */ 00003 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */ 00004 /* license for use of this work by or on behalf of the U.S. Government. */ 00005 /* Export of this program may require a license from the */ 00006 /* United States Government. */ 00007 /*------------------------------------------------------------------------*/ 00008 00009 #ifndef STK_MESH_FIXTURES_GRID_MESH_FIXTURE_HPP 00010 #define STK_MESH_FIXTURES_GRID_MESH_FIXTURE_HPP 00011 00012 #include <stk_util/parallel/Parallel.hpp> 00013 #include <stk_mesh/base/Types.hpp> 00014 #include <stk_mesh/base/MetaData.hpp> 00015 #include <stk_mesh/base/BulkData.hpp> 00016 #include <stk_mesh/fem/TopologicalMetaData.hpp> 00017 00018 namespace stk { 00019 namespace mesh { 00020 namespace fixtures { 00021 00022 class GridFixture 00023 { 00024 public: 00025 GridFixture(stk::ParallelMachine pm); 00026 00027 ~GridFixture(); 00028 00029 MetaData& meta_data() { return m_meta_data; } 00030 BulkData& bulk_data() { return m_bulk_data; } 00031 TopologicalMetaData& top_data() { return m_top_data; } 00032 00033 Part* quad_part() const { return & m_quad_part; } 00034 Part* dead_part() const { return & m_dead_part; } 00035 00036 void generate_grid(); 00037 00038 private: 00039 const unsigned m_spatial_dimension; 00040 MetaData m_meta_data; 00041 BulkData m_bulk_data; 00042 TopologicalMetaData m_top_data; 00043 Part & m_quad_part; 00044 Part & m_dead_part; 00045 }; 00046 00047 } // fixtures 00048 } // mesh 00049 } // stk 00050 00051 #endif 00052