Skip to main content

DPF C++ Client Library 2025 R2

ansys::dpf::MeshInfo Class Reference

Last update: 16.07.2025

Define a mesh info. More...

#include <dpf_api.h>

Public Member Functions

 MeshInfo (const GenericDataContainer &_genericData)
 
 MeshInfo (MeshInfo const &)
 
MeshInfooperator= (MeshInfo const &)
 
GenericDataContainer const & getGenericDataContainer () const
 
template<typename T >
getProperty (const std::string &property_name) const
 
template<typename T >
void setProperty (const std::string &property_name, const T &property)
 
void setnumberOfNodes (int numNodes)
 @detail set the number of nodes. More...
 
void setnumberOfElements (int numElements)
 @detail set the number of elements. More...
 
void setSplittableBy (dpf::StringField splittableByScoping)
 @detail set strings name correspondind to mesh split scopings. More...
 
void setAvailableElementType (dpf::Scoping availableElementTypes)
 @detail set available elements of the mesh. More...
 
int numberOfNodes ()
 
int numberOfElements ()
 
dpf::Scoping getAvailableElementTypes ()
 
dpf::StringField getSplittableBy ()
 

Detailed Description

Define a mesh info.

MeshInfo can set and get properties of the mesh through a GenericDataContainer.

Member Function Documentation

◆ getAvailableElementTypes()

dpf::Scoping ansys::dpf::MeshInfo::getAvailableElementTypes ( )
inline
Returns
the available element types of the mesh.

◆ getSplittableBy()

dpf::StringField ansys::dpf::MeshInfo::getSplittableBy ( )
inline
Returns
the names of the scoped meshes that split the mesh.

◆ numberOfElements()

int ansys::dpf::MeshInfo::numberOfElements ( )
inline
Returns
the number of elements of the mesh.

◆ numberOfNodes()

int ansys::dpf::MeshInfo::numberOfNodes ( )
inline
Returns
the number of nodes of the mesh.

◆ setAvailableElementType()

void ansys::dpf::MeshInfo::setAvailableElementType ( dpf::Scoping  availableElementTypes)
inline

@detail set available elements of the mesh.

Parameters
[in]availableElementTypesScopings of available element types.

◆ setnumberOfElements()

void ansys::dpf::MeshInfo::setnumberOfElements ( int  numElements)
inline

@detail set the number of elements.

Parameters
[in]numElementsNumber of elements.

◆ setnumberOfNodes()

void ansys::dpf::MeshInfo::setnumberOfNodes ( int  numNodes)
inline

@detail set the number of nodes.

Parameters
[in]numNodesNumber of nodes.

◆ setSplittableBy()

void ansys::dpf::MeshInfo::setSplittableBy ( dpf::StringField  splittableByScoping)
inline

@detail set strings name correspondind to mesh split scopings.

Parameters
[in]splittableByScopingSplit mesh names.

Connect with Ansys