Skip to main content
Holds the mesh for a given region (body, faces, skin, …) #include <dpf_api.h> Inheritance diagram for ansys::dpf::MeshedRegion:

Public Member Functions

Public Member Functions inherited from ansys::dpf::DpfTypes

Static Public Member Functions

Detailed Description

Holds the mesh for a given region (body, faces, skin, …) The meshed region is an entity describing a mesh. Node and element scopings, element types, connectivity (list of node indices composing each element) and node coordinates are the fundamental entities composing the meshed region. It can also have materials, named selections… Examples AveragingTest.cpp, CompleteRST.cpp, DataApis.cpp, DataExport.cpp, ModelTest.cpp, and WorkflowExamples.cpp.

Constructor & Destructor Documentation

MeshedRegion() [1/2]

Create a new meshed region on a server. Parameters

MeshedRegion() [2/2]

Retrieve an existing instance of MeshedRegion on a server. Parameters

Member Function Documentation

addElement() [1/2]

Add element to mesh. Parameters

addElement() [2/2]

Add element to mesh. Not available in remote, use the implementation with the element shape instead. Parameters Examples DataApis.cpp, and DataExport.cpp.

addNode() [1/2]

Add node to mesh. Parameters

addNode() [2/2]

Add node to mesh. Parameters Examples AveragingTest.cpp, DataApis.cpp, and DataExport.cpp.

availableNamedSelections()

Returns Vector of named selections withing mesh. Examples CompleteRST.cpp, ModelTest.cpp, and WorkflowExamples.cpp.

availablePropertyFields()

Returns Vector of property fields withing mesh. See property_types for examples of available types.

connectivity()

Returns Property field describing element connectivity for mesh. Examples DataApis.cpp, and ModelTest.cpp.

deep_copy() [1/2]

Make a deep copy locally.

deep_copy() [2/2]

Create a new MeshedRegion on a server by copying all the data of this MeshedRegion. Parameters Examples DataExport.cpp.

elementDescriptorByElementId()

Get ElementDescriptor (type related information) from element id. .

elementScoping()

Returns Scoping describing elements of mesh. Examples DataApis.cpp, and DataExport.cpp.

elementShape()

Get element shape.

elementTypes()

Returns Property field describing element types within mesh. Examples DataApis.cpp.

faceScoping()

Returns Scoping describing faces of mesh.

fillCursor()

Get a cursor for given element. Parameters Examples DataApis.cpp.

hasBeam()

Returns Indication if mesh contains beam elements.

hasOnlyBeam()

Returns Indication if mesh only contains beam elements.

hasOnlyPoint()

Returns Indication if mesh only contains point elements.

hasOnlyShell()

Returns Indication if mesh only contains shell elements.

hasOnlySkin()

Returns Indication if mesh only contains skin elements.

hasOnlySolid()

Returns Indication if mesh only contains solid elements.

hasPoint()

Returns Indication if mesh contains point elements.

hasPolygons()

Returns Indication if mesh contains Polygonal elements.

hasPolyhedrons()

Returns Indication if mesh contains Polyhedral elements.

hasPropField()

Returns Indication that property type exists. Parameters

hasShell()

Returns Indication if mesh contains shell elements.

hasSkin()

Returns Indication if mesh contains skin elements.

hasSolid()

Returns Indication if mesh contains solid elements.

lengthUnit()

Returns Length unit for mesh. Examples CompleteRST.cpp, and DataExport.cpp.

name()

Returns Name of the mesh.

namedSelection()

Returns Scoping for given named selection. Parameters Examples CompleteRST.cpp, and ModelTest.cpp.

nodesCoordinates()

Returns Field containing mesh node coordinates. Examples DataApis.cpp, DataExport.cpp, and ModelTest.cpp.

nodeScoping()

Returns Scoping describing nodes of mesh. Examples DataApis.cpp, and DataExport.cpp.

numberOfElements()

Returns Number of elements in mesh. Examples CompleteRST.cpp, DataExport.cpp, and ModelTest.cpp.

numberOfFaces()

Returns Number of faces in mesh.

numberOfNodes()

Returns Number of nodes in mesh. Examples CompleteRST.cpp, DataExport.cpp, and ModelTest.cpp.

numNodesOfElement()

Get number of nodes for element at given index.

prepareConstruction()

Allocate and reserve space for given number of nodes and elements. node scoping and coordinates vectors are reserved for n_nodes, elements scoping, connectivity and elements type property field are reserved for n_elements. this method should always be called before adding any node or element. Parameters Examples DataApis.cpp, and DataExport.cpp.

propField()

Returns Property field given by property type. Parameters

setConnectivity()

Set a connectivity (nodes of the elements) property field. Parameters

setElementTypes()

Set element types property field. Parameters

setLengthUnit()

Set length unit for mesh. Parameters Examples DataExport.cpp.

setName()

Set mesh name.

setNamedSelectionScoping()

Set a named selection scoping for mesh. Parameters

setNodesCoordinates()

Set a field for mesh. Parameters Examples DataExport.cpp.

setPropertyField()

Set an elemental property field for mesh. Its elemental scoping must be equal to the one that has already been set into the mesh, if it exists.
Parameters See also common_property_names. Parameters