Sierra Toolkit  Version of the Day
stk_classic::mesh::fixtures::QuadFixture Class Reference

#include <QuadFixture.hpp>

Collaboration diagram for stk_classic::mesh::fixtures::QuadFixture:

Public Types

typedef int Scalar
 
typedef Field< Scalar, CartesianCoordFieldType
 
typedef Field< Scalar *, ElementNodeCoordGatherFieldType
 

Public Member Functions

 QuadFixture (stk_classic::ParallelMachine pm, unsigned nx, unsigned ny)
 
EntityId node_id (unsigned x, unsigned y) const
 
EntityId elem_id (unsigned x, unsigned y) const
 
Entitynode (unsigned x, unsigned y) const
 
Entityelem (unsigned x, unsigned y) const
 
void node_x_y (EntityId entity_id, unsigned &x, unsigned &y) const
 
void elem_x_y (EntityId entity_id, unsigned &x, unsigned &y) const
 
void generate_mesh ()
 

Public Attributes

const unsigned m_spatial_dimension
 
fem::FEMMetaData m_fem_meta
 
BulkData m_bulk_data
 
Partm_quad_part
 
CoordFieldTypem_coord_field
 
CoordGatherFieldTypem_coord_gather_field
 
const unsigned m_nx
 
const unsigned m_ny
 

Detailed Description

An 2-dimensional X*Y quad fixture.

A coordinate field will be added to all nodes, a coordinate-gather field will be added to all elements.

Definition at line 36 of file QuadFixture.hpp.

Constructor & Destructor Documentation

◆ QuadFixture()

stk_classic::mesh::fixtures::QuadFixture::QuadFixture ( stk_classic::ParallelMachine  pm,
unsigned  nx,
unsigned  ny 
)

Set up meta data to support this fixture. Meta data is left uncommitted to allow additional modifications by the client.

Definition at line 29 of file QuadFixture.cpp.

Member Function Documentation

◆ node_id()

EntityId stk_classic::mesh::fixtures::QuadFixture::node_id ( unsigned  x,
unsigned  y 
) const
inline

Thinking in terms of rows and columns of nodes, get the id of the node in the (x, y) position.

Definition at line 64 of file QuadFixture.hpp.

◆ elem_id()

EntityId stk_classic::mesh::fixtures::QuadFixture::elem_id ( unsigned  x,
unsigned  y 
) const
inline

Thinking in terms of rows and columns of elements, get the id of the element in the (x, y) position.

Definition at line 71 of file QuadFixture.hpp.

◆ node()

Entity* stk_classic::mesh::fixtures::QuadFixture::node ( unsigned  x,
unsigned  y 
) const
inline

Thinking in terms of rows and columns of nodes, get the node in the (x, y) position. Return NULL if this process doesn't know about this node.

Definition at line 79 of file QuadFixture.hpp.

◆ elem()

Entity* stk_classic::mesh::fixtures::QuadFixture::elem ( unsigned  x,
unsigned  y 
) const
inline

Thinking in terms of rows and columns of elements, get the element in the (x, y) position. Return NULL if this process doesn't know about this element.

Definition at line 87 of file QuadFixture.hpp.

◆ node_x_y()

void stk_classic::mesh::fixtures::QuadFixture::node_x_y ( EntityId  entity_id,
unsigned &  x,
unsigned &  y 
) const

Thinking in terms of a 2D grid of nodes, compute the (x, y) position of a node given it's id.

Definition at line 68 of file QuadFixture.cpp.

◆ elem_x_y()

void stk_classic::mesh::fixtures::QuadFixture::elem_x_y ( EntityId  entity_id,
unsigned &  x,
unsigned &  y 
) const

Thinking in terms of a 2D grid of elements, compute the (x, y) position of an element given it's id.

Definition at line 78 of file QuadFixture.cpp.

◆ generate_mesh()

void stk_classic::mesh::fixtures::QuadFixture::generate_mesh ( )

Create the mesh (into m_bulk_data).

Definition at line 89 of file QuadFixture.cpp.


The documentation for this class was generated from the following files: