Sierra Toolkit Version of the Day
stk::io::util::Gmesh_STKmesh_Fixture Class Reference

#include <Gmesh_STKmesh_Fixture.hpp>

Collaboration diagram for stk::io::util::Gmesh_STKmesh_Fixture:

List of all members.

Public Member Functions

 Gmesh_STKmesh_Fixture (stk::ParallelMachine comm, const std::string &gmesh_spec)
void commit ()
size_t getSurfElemCount (size_t surf_id) const
std::pair< int, double > getSurfCoordInfo (size_t surf_id) const
size_t getSideCount () const
size_t getElemCount () const
size_t getNodeCount () const
const std::vector< std::string > & getSidesetNames () const
const stk::mesh::PartVectorgetSideParts () const
stk::mesh::MetaDatagetMetaData ()
const stk::mesh::fem::FEMMetaDatagetFEMMetaData () const
stk::mesh::fem::FEMMetaDatagetFEMMetaData ()
const stk::mesh::BulkDatagetBulkData () const
stk::mesh::BulkDatagetBulkData ()

Detailed Description

This class implements a Stk-mesh based fixture that uses a generated mesh as the basis of the fixture.

Definition at line 21 of file Gmesh_STKmesh_Fixture.hpp.

Constructor & Destructor Documentation

Gmesh_STKmesh_Fixture::Gmesh_STKmesh_Fixture ( stk::ParallelMachine  comm,
const std::string &  gmesh_spec 

Construct a fixture. Note that the fixture won't be completed until commit is called; the intent is to give the client a chance to make additional changes to the meta-data.

commThe comm object for all processors using the fixture
gmesh_specThe specification for the mesh. See Iogn::GeneratedMesh for documentation on how to specify meshes.

Definition at line 25 of file Gmesh_STKmesh_Fixture.cpp.

Member Function Documentation

void Gmesh_STKmesh_Fixture::commit ( )

Commits the meta-data of the mesh and populates the bulk-data. Don't call this until you are done modifying the meta-data.

Definition at line 62 of file Gmesh_STKmesh_Fixture.cpp.

size_t Gmesh_STKmesh_Fixture::getSurfElemCount ( size_t  surf_id) const

For a given surface, return the number of elements in the surface

surf_idThe surface we are interested in.

Definition at line 71 of file Gmesh_STKmesh_Fixture.cpp.

std::pair< int, double > Gmesh_STKmesh_Fixture::getSurfCoordInfo ( size_t  surf_id) const

For a given surface, return the relevant dimension and expected value of that dimension. For example, for surface PY, (1, m_num_y) would be returned; 1 refers to the Y dimension and m_num_y is the expected Y-coordinate value for all the nodes on the PY surface.

The surface we are interested in.

Definition at line 98 of file Gmesh_STKmesh_Fixture.cpp.

size_t Gmesh_STKmesh_Fixture::getSideCount ( ) const

Get the total number of side entities in this mesh.

Definition at line 131 of file Gmesh_STKmesh_Fixture.cpp.

size_t Gmesh_STKmesh_Fixture::getElemCount ( ) const

Get the total number of elements in this mesh.

Definition at line 138 of file Gmesh_STKmesh_Fixture.cpp.

size_t Gmesh_STKmesh_Fixture::getNodeCount ( ) const

Get the total number of nodes in this mesh.

Definition at line 145 of file Gmesh_STKmesh_Fixture.cpp.

const std::vector<std::string>& stk::io::util::Gmesh_STKmesh_Fixture::getSidesetNames ( ) const [inline]

Get the names of all the sideset parts.

Definition at line 77 of file Gmesh_STKmesh_Fixture.hpp.

const stk::mesh::PartVector& stk::io::util::Gmesh_STKmesh_Fixture::getSideParts ( ) const [inline]

Get all the sideset parts.

Definition at line 83 of file Gmesh_STKmesh_Fixture.hpp.

stk::mesh::MetaData& stk::io::util::Gmesh_STKmesh_Fixture::getMetaData ( ) [inline]

Get a reference to the meta data for the stk-mesh. const stk::mesh::MetaData & getMetaData() const { return m_meta_data.get_meta_data(m_meta_data); }

Definition at line 92 of file Gmesh_STKmesh_Fixture.hpp.

const stk::mesh::BulkData& stk::io::util::Gmesh_STKmesh_Fixture::getBulkData ( ) const [inline]

Get a reference to the bulk data for the stk-mesh.

Definition at line 104 of file Gmesh_STKmesh_Fixture.hpp.

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