Sierra Toolkit Version of the Day
GridFixture.hpp
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/FEMMetaData.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   fem::FEMMetaData& fem_meta() { return m_fem_meta; }
00030   BulkData& bulk_data() { return m_bulk_data; }
00031 
00032   Part* quad_part() const { return & m_quad_part; }
00033   Part* dead_part() const { return & m_dead_part; }
00034 
00035   void generate_grid();
00036 
00037   const unsigned m_spatial_dimension;
00038 
00039   fem::FEMMetaData  m_fem_meta;
00040   BulkData          m_bulk_data;
00041   Part &            m_quad_part;
00042   Part &            m_dead_part;
00043 };
00044 
00045 } // fixtures
00046 } // mesh
00047 } // stk
00048 
00049 #endif
00050 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends