MeshGrpc#

class ansys.mapdl.core.mesh_grpc.MeshGrpc(mapdl)[source]#

Provides an interface to the gRPC mesh from MAPDL.

Methods

MeshGrpc.nodes_in_coordinate_system(CS_id)

Return nodes in the desired coordinate system.

MeshGrpc.save(filename[, binary, ...])

Save the geometry as a vtk file

Attributes

MeshGrpc.ekey

Element type key

MeshGrpc.elem

List of elements containing raw ansys information.

MeshGrpc.elem_real_constant

Real constant reference for each element.

MeshGrpc.element_components

Element components for the archive.

MeshGrpc.element_coord_system

Element coordinate system number

MeshGrpc.enum

Element numbers of currently selected elements

MeshGrpc.enum_all

Array of all element numbers, even those not selected.

MeshGrpc.et_id

Element type id (ET) for each element.

MeshGrpc.etype

Element type of each element.

MeshGrpc.grid

VTK representation of the underlying finite element mesh.

MeshGrpc.key_option

Key options of selected element types.

MeshGrpc.local

MeshGrpc.material_type

Material type index of each element in the archive.

MeshGrpc.n_elem

Number of currently selected elements in MAPDL.

MeshGrpc.n_node

Number of currently selected nodes in MAPDL.

MeshGrpc.nnum

Array of currently selected node numbers.

MeshGrpc.nnum_all

Array of all node numbers, even those not selected.

MeshGrpc.node_angles

Not yet implemented

MeshGrpc.node_components

Node components for the archive.

MeshGrpc.nodes

Array of nodes in Global Cartesian coordinate system.

MeshGrpc.nodes_in_current_CS

Returns the nodes array in the current coordinate system.

MeshGrpc.nodes_rotation

Returns an array of node rotations

MeshGrpc.rlblock

Real constant data from the RLBLOCK.

MeshGrpc.rlblock_num

Indices from the real constant data

MeshGrpc.section

Section number

MeshGrpc.tshape

Tshape of contact elements.

MeshGrpc.tshape_key

Dict with the mapping between element type and element shape.