Skip to main content
Contains a group of meshes. The meshes container is designed as a set of meshes ordered through labels and ids. Labels identify how the fields are filtered. The most common meshes container have the label “body” with ids corresponding to each body entity. See also: MeshedRegion Inherits from:
  • ansys::dpf::CollectionBase

Members

Friends

Public functions

Function MeshesContainer

Return type:

Function ~MeshesContainer

Return type:

Function MeshesContainer

Parameters:
  • MeshesContainer const &
Return type:

Function MeshesContainer

Parameters:
  • MeshesContainer &&
Return type:

Function MeshesContainer

Create a new meshes container on a server. Parameters:
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function MeshesContainer

Create a collection of meshes with the given labels on a server. Parameters:
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
  • std::vector< std::string > const & labels: [in] Labels for meshes.
Return type:

Function MeshesContainer

Retrieve an existing instance of MeshesContainer on a server. Parameters:
  • int id: [in] Id of the MeshesContainer object on the server’s database.
  • Client const *const client: [in] Client instance designating the IP, port and protocol to use.
Return type:

Function MeshesContainer

Create mesh container for a group of meshed regions with the given labels. Parameters:
  • std::vector< std::string > const & labels: [in] Labels for group of meshed regions.
Return type:

Function operator=

Parameters:
  • MeshesContainer const &
Return type: MeshesContainer &

Function operator=

Parameters:
  • MeshesContainer &&
Return type: MeshesContainer &

Function operator[]

Returns: Meshed region for given index. Parameters:
  • dp_int index: [in] Index of mesh within container.
Return type: MeshedRegion

Function at

Returns: Meshed region for given index. Parameters:
  • dp_index index: [in] Index of meshed region to get.
Return type: MeshedRegion

Function at

Returns: Meshed region for given index. Parameters:
  • dp_index index: [in] Index of meshed region to get.
Return type: const MeshedRegion

Function update

Update a meshed region at index. Parameters: Return type: void

Function add

Add meshed region with given label space. Parameters:
  • LabelSpace const & labels: [in] Label space for meshed region.
  • MeshedRegion const & f: [in] Meshed region to add.
  • bool can_replace = true : [in] if can_replace is false, then, the entity is pushed back without checking if the label space already exists.
Return type: void

Function getMeshes

Returns: Vector of meshed regions for given label space. Parameters:
  • LabelSpace const & label_space: [in] Label space for which to get meshed regions.
Return type: std::vector< MeshedRegion >

Function getMesh

Returns: First meshed region for given label space. Parameters:
  • LabelSpace const & label_space: [in] Label space for which to get meshed region.
Return type: MeshedRegion

Function getMeshesIndices

Parameters: Return type: std::vector< int >

Function getMatchingMesh

Returns: First matching Mesh for given label space. Parameters: Return type: MeshedRegion

Function getMatchingMeshIndices

Returns: Vector of matching Mesh to the given label space. Parameters:
  • LabelSpace const & label_space: [in] Label space for which to get entries.
Return type: DpfVector< dp_index >

Function createSubMeshesContainer

create a MeshesContainer with all the meshes corresponding to the label space in input Parameters: Return type: MeshesContainer

Function deep_copy

Create a new MeshesContainer on a server by copying all the data of this MeshesContainer. Parameters: Return type: MeshesContainer

Public static functions

Function emptyMeshesContainer

Create an empty mesh container. Returns: Empty mesh container. Return type: MeshesContainer