Skip to main content

DPF Cpp Client Library 2026 R1

Class ansys::dpf::MeshInfo

Last update: 25.03.2026

Define a mesh info.

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

Members

Public functions

Function MeshInfo

ansys::dpf::MeshInfo::MeshInfo()

Return type:

Function MeshInfo

ansys::dpf::MeshInfo::MeshInfo(const GenericDataContainer &_genericData)

Parameters:

  • const GenericDataContainer & _genericData

Return type:

Function MeshInfo

ansys::dpf::MeshInfo::MeshInfo(MeshInfo const &)

Parameters:

  • MeshInfo const &

Return type:

Function operator=

MeshInfo & ansys::dpf::MeshInfo::operator=(MeshInfo const &)

Parameters:

  • MeshInfo const &

Return type: MeshInfo &

Function getGenericDataContainer

GenericDataContainer const  & ansys::dpf::MeshInfo::getGenericDataContainer() const

Return type: GenericDataContainer const &

Function getProperty

T ansys::dpf::MeshInfo::getProperty(const std::string &property_name) const

Parameters:

  • const std::string & property_name

Return type: T

Function setProperty

void ansys::dpf::MeshInfo::setProperty(const std::string &property_name, const T &property)

Parameters:

  • const std::string & property_name
  • const T & property

Return type: void

Function setnumberOfNodes

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

@detail set the number of nodes.

Parameters:

  • int numNodes: [in] Number of nodes.

Return type: void

Function setnumberOfElements

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

@detail set the number of elements.

Parameters:

  • int numElements: [in] Number of elements.

Return type: void

Function setSplittableBy

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

@detail set strings name correspondind to mesh split scopings.

Parameters:

Return type: void

Function setAvailableElementType

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

@detail set available elements of the mesh.

Parameters:

  • dpf::Scoping availableElementTypes: [in] Scopings of available element types.

Return type: void

Function numberOfNodes

int ansys::dpf::MeshInfo::numberOfNodes()

Returns:

the number of nodes of the mesh.

Return type: int

Function numberOfElements

int ansys::dpf::MeshInfo::numberOfElements()

Returns:

the number of elements of the mesh.

Return type: int

Function getAvailableElementTypes

dpf::Scoping ansys::dpf::MeshInfo::getAvailableElementTypes()

Returns:

the available element types of the mesh.

Return type: dpf::Scoping

Function getSplittableBy

dpf::StringField ansys::dpf::MeshInfo::getSplittableBy()

Returns:

the names of the scoped meshes that split the mesh.

Return type: dpf::StringField

Connect with Ansys