Sierra Toolkit Version of the Day
stk::mesh::fixtures::RingFixture Class Reference

#include <RingFixture.hpp>

Collaboration diagram for stk::mesh::fixtures::RingFixture:

List of all members.

Public Member Functions

 RingFixture (stk::ParallelMachine pm, unsigned num_edge_per_proc=10, bool use_edge_parts=false)
void generate_mesh ()
void fixup_node_ownership ()

Public Attributes

const int m_spatial_dimension
fem::FEMMetaData m_meta_data
BulkData m_bulk_data
PartVector m_edge_parts
Partm_edge_part_extra
const size_t m_num_edge_per_proc
std::vector< EntityId > m_node_ids
std::vector< EntityId > m_edge_ids

Detailed Description

Creates a ring mesh (circular loop of edges and nodes). Note that we create a part for each locally owned edge.

Definition at line 37 of file RingFixture.hpp.


Constructor & Destructor Documentation

stk::mesh::fixtures::RingFixture::RingFixture ( stk::ParallelMachine  pm,
unsigned  num_edge_per_proc = 10,
bool  use_edge_parts = false 
)

Creates a ring mesh (circular loop of edges and nodes). Note that we create a part for each locally owned edge. Also note that, since we are in 1D, the "edges" are actually elements.

Definition at line 35 of file RingFixture.cpp.


Member Function Documentation

void stk::mesh::fixtures::RingFixture::generate_mesh ( )

Generate a simple loop of mesh entities: node[i] : edge[i] : node[ ( i + 1 ) % node.size() ]

Definition at line 57 of file RingFixture.cpp.

void stk::mesh::fixtures::RingFixture::fixup_node_ownership ( )

Make sure that edge->owner_rank() == edge->node[1]->owner_rank()

Definition at line 97 of file RingFixture.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends