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

#include <Gmesh_STKmesh_Fixture.hpp>

Public Member Functions

 Gmesh_STKmesh_Fixture (stk_classic::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_classic::mesh::PartVectorgetSideParts () const
 
stk_classic::mesh::MetaDatagetMetaData ()
 
const stk_classic::mesh::fem::FEMMetaDatagetFEMMetaData () const
 
stk_classic::mesh::fem::FEMMetaDatagetFEMMetaData ()
 
const stk_classic::mesh::BulkDatagetBulkData () const
 
stk_classic::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::Gmesh_STKmesh_Fixture ( stk_classic::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.

Parameters
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

◆ commit()

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.

◆ getSurfElemCount()

size_t Gmesh_STKmesh_Fixture::getSurfElemCount ( size_t  surf_id) const

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

Parameters
surf_idThe surface we are interested in.

Definition at line 71 of file Gmesh_STKmesh_Fixture.cpp.

◆ getSurfCoordInfo()

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.

◆ getSideCount()

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.

◆ getElemCount()

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.

◆ getNodeCount()

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.

◆ getSidesetNames()

const std::vector<std::string>& stk_classic::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.

◆ getSideParts()

const stk_classic::mesh::PartVector& stk_classic::io::util::Gmesh_STKmesh_Fixture::getSideParts ( ) const
inline

Get all the sideset parts.

Definition at line 83 of file Gmesh_STKmesh_Fixture.hpp.

◆ getMetaData()

stk_classic::mesh::MetaData& stk_classic::io::util::Gmesh_STKmesh_Fixture::getMetaData ( )
inline

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

Definition at line 92 of file Gmesh_STKmesh_Fixture.hpp.

◆ getBulkData()

const stk_classic::mesh::BulkData& stk_classic::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: