9 #ifndef STK_MESH_FIXTURES_HEX_MESH_FIXTURE_HPP
10 #define STK_MESH_FIXTURES_HEX_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/FEMMetaData.hpp>
23 #include <stk_mesh/fem/CoordinateSystems.hpp>
24 #include <stk_mesh/fem/TopologyDimensions.hpp>
26 namespace stk_classic {
39 typedef double Scalar ;
49 const int m_spatial_dimension;
64 EntityId
node_id(
unsigned x ,
unsigned y ,
unsigned z )
const {
65 return 1 + x + ( m_nx + 1 ) * ( y + ( m_ny + 1 ) * z );
72 EntityId
elem_id(
unsigned x ,
unsigned y ,
unsigned z )
const {
73 return 1 + x + m_nx * ( y + m_ny * z );
80 Entity *
node(
unsigned x ,
unsigned y ,
unsigned z )
const {
89 Entity *
elem(
unsigned x ,
unsigned y ,
unsigned z )
const {
110 void generate_mesh( std::vector<EntityId> & element_ids_on_this_processor );
EntityId node_id(unsigned x, unsigned y, unsigned z) const
Entity * get_entity(EntityRank entity_rank, EntityId entity_id) const
Get entity with a given key.
void node_x_y_z(EntityId entity_id, unsigned &x, unsigned &y, unsigned &z) const
Entity * node(unsigned x, unsigned y, unsigned z) const
Field with defined data type and multi-dimensions (if any)
An application-defined subset of a problem domain.
EntityId elem_id(unsigned x, unsigned y, unsigned z) 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...
void elem_x_y_z(EntityId entity_id, unsigned &x, unsigned &y, unsigned &z) const
Entity * elem(unsigned x, unsigned y, unsigned z) const