9 #ifndef STK_MESH_FIXTURES_QUAD_MESH_FIXTURE_HPP
10 #define STK_MESH_FIXTURES_QUAD_MESH_FIXTURE_HPP
12 #include <Shards_BasicTopologies.hpp>
14 #include <stk_util/parallel/Parallel.hpp>
16 #include <stk_mesh/base/Types.hpp>
17 #include <stk_mesh/base/MetaData.hpp>
18 #include <stk_mesh/base/BulkData.hpp>
19 #include <stk_mesh/base/Field.hpp>
20 #include <stk_mesh/base/DataTraits.hpp>
22 #include <stk_mesh/fem/CoordinateSystems.hpp>
23 #include <stk_mesh/fem/TopologyDimensions.hpp>
24 #include <stk_mesh/fem/FEMMetaData.hpp>
26 namespace stk_classic {
51 const unsigned m_spatial_dimension;
64 EntityId
node_id(
unsigned x ,
unsigned y )
const
65 {
return 1 + x + ( m_nx + 1 ) * y ; }
71 EntityId
elem_id(
unsigned x ,
unsigned y )
const
72 {
return 1 + x + m_nx * y ; }
108 void generate_mesh( std::vector<EntityId> & element_ids_on_this_processor );
Entity * get_entity(EntityRank entity_rank, EntityId entity_id) const
Get entity with a given key.
EntityId elem_id(unsigned x, unsigned y) const
Field with defined data type and multi-dimensions (if any)
An application-defined subset of a problem domain.
EntityId node_id(unsigned x, unsigned y) const
void elem_x_y(EntityId entity_id, unsigned &x, unsigned &y) const
void node_x_y(EntityId entity_id, unsigned &x, unsigned &y) const
Entity * elem(unsigned x, unsigned y) const
Manager for an integrated collection of entities, entity relations, and buckets of field data...
EntityId entity_id(const EntityKey &key)
Given an entity key, return the identifier for the entity.
A fundamental unit within the discretization of a problem domain, including but not limited to nodes...
Entity * node(unsigned x, unsigned y) const