Sierra Toolkit
Version of the Day
|
#include <QuadFixture.hpp>
Public Types | |
typedef int | Scalar |
typedef Field< Scalar, Cartesian > | CoordFieldType |
typedef Field< Scalar *, ElementNode > | CoordGatherFieldType |
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 |
Entity * | node (unsigned x, unsigned y) const |
Entity * | elem (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 |
Part & | m_quad_part |
CoordFieldType & | m_coord_field |
CoordGatherFieldType & | m_coord_gather_field |
const unsigned | m_nx |
const unsigned | m_ny |
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.
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.
|
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.
|
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.
|
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.
|
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.
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.
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.
void stk_classic::mesh::fixtures::QuadFixture::generate_mesh | ( | ) |
Create the mesh (into m_bulk_data).
Definition at line 89 of file QuadFixture.cpp.