Skip to main content
Namespace: Ans.DataProcessing

Summary

Describe 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.

Example

Class Information

Constructors

Constructor

Parameters:
  • numNodes (int)
  • numElements (int)

Constructor

Parameters:
  • pMeshedRegion (IntPtr)

Methods

GetInternalData

Returns: IntPtr

AddNode

Parameters:
  • id (int)
  • coordinates (list)

AddBeamElement

Parameters:
  • id (int)
  • connectivity (list)

AddShellElement

Parameters:
  • id (int)
  • connectivity (list)

AddSolidElement

Parameters:
  • id (int)
  • connectivity (list)

AddPointElement

Parameters:
  • id (int)
  • connectivity (list)

AddPointElement

Method AddPointElement add a new point element into the mesh with it’s connected node and it’s element id
Parameters:
  • id (int)
  • connectivity (int)

NodeById

Method NodeById access a given node contained by the mesh. Allows to access its id and its coordinates
Parameters:
  • nodeId (int)
Returns: Node

ElementById

Method ElementById access a given element contained by the mesh. Allows to access its id, its element type, connectivity…
Parameters:
  • elementId (int)
Returns: Element

GetPropertyField

Method GetPropertyField returns the Mesh Property Field describing a given integral property
Parameters:
  • propertyName (str)
Returns: PropertyField

Properties

NodeCount

Property NodeCount number of nodes in the mesh Type: int

ElementCount

Property ElementCount number of elements in the mesh Type: int

NodeIds

Property NodeIds list of node ids contained by the mesh Type: list

ElementIds

Property NodeIds list of element ids contained by the mesh Type: list

NodeScoping

Property NodeScoping list of nodes ids contained by the mesh Type: Scoping

ElementScoping

Property ElementScoping list of elements ids contained by the mesh Type: Scoping

Unit

Property Unit unit symbol of the meshes coordinates Type: str

HasShell

Property HasShell tells if the mesh has shell (2D) elements Type: bool

HasOnlyShell

Property HasOnlyShell tells if the mesh only has shell (2D) elements Type: bool

HasBeam

Property HasBeam tells if the mesh has beam (1D) elements Type: bool

HasOnlyBeam

Property HasOnlyBeam tells if the mesh only has beam (1D) elements Type: bool

HasSolid

Property HasSolid tells if the mesh has solid (3D) elements Type: bool

HasGasket

Type: bool

HasOnlySolid

Property HasOnlySolid tells if the mesh only has solid (3D) elements Type: bool

HasPoint

Property HasPoint tells if the mesh has point (0D) elements Type: bool

HasOnlyPoint

Property HasOnlyPoint tells if the mesh only has point (0D) elements Type: bool

HasSkin

Property HasSkin tells if the mesh has skin (2D non-structural shell) elements Type: bool

HasPolygons

Property HasPolygons tells if the mesh has Polygonal 2D elements Type: bool

HasPolyhedrons

Property HasPolyhedrons tells if the mesh has Polyhedral 3D elements Type: bool

Nodes

Property Nodes list of nodes contained by the mesh. Allows to access their id and their coordinates Type: list

Elements

Property Elements list of elements contained by the mesh. Allows to access their id, their element type, connectivity… Type: list

CoordinatesField

Property CoordinatesField field of nodes coordinates. Its scoping is the NodeScoping Type: Field

ConnectivityPropertyField

Type: PropertyField

NodalConnectivityPropertyField

Type: PropertyField