Sierra Toolkit
Version of the Day
|
#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::PartVector & | getSideParts () const |
stk_classic::mesh::MetaData & | getMetaData () |
const stk_classic::mesh::fem::FEMMetaData & | getFEMMetaData () const |
stk_classic::mesh::fem::FEMMetaData & | getFEMMetaData () |
const stk_classic::mesh::BulkData & | getBulkData () const |
stk_classic::mesh::BulkData & | getBulkData () |
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.
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.
comm | The comm object for all processors using the fixture |
gmesh_spec | The specification for the mesh. See Iogn::GeneratedMesh for documentation on how to specify meshes. |
Definition at line 25 of file Gmesh_STKmesh_Fixture.cpp.
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_id | The 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.
|
inline |
Get the names of all the sideset parts.
Definition at line 77 of file Gmesh_STKmesh_Fixture.hpp.
|
inline |
Get all the sideset parts.
Definition at line 83 of file Gmesh_STKmesh_Fixture.hpp.
|
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.
|
inline |
Get a reference to the bulk data for the stk-mesh.
Definition at line 104 of file Gmesh_STKmesh_Fixture.hpp.