MeshQuery

class cee.usg.MeshQuery()

Class for querying the FEA mesh in an UnstructGridModel.

You can use this class to both interrogate a mesh in its local coordinates and to query a state in the model. If a state is specified the returned data will be in global coordinates, taking any displacement and transformation result into account.

Constructors


Constructors

constructor

cee.usg.MeshQuery.constructor(mesh)

Create the query object.

Arguments
Return type

cee.usg.MeshQuery

If a mesh is specified, the query will be based on the mesh elements and nodes. The coordinate system of the returned data will be in mesh local coordinates.

If a state and part index is specified, the results (displacement and transformations) will be applied if in use. So, in this case the coordinate system of the returned data will be in global coordinates.

cee.usg.MeshQuery.constructor(state, partIndex)

Create the query object.

Arguments
Return type

cee.usg.MeshQuery

If a mesh is specified, the query will be based on the mesh elements and nodes. The coordinate system of the returned data will be in mesh local coordinates.

If a state and part index is specified, the results (displacement and transformations) will be applied if in use. So, in this case the coordinate system of the returned data will be in global coordinates.

Methods

getElementCentroid

cee.usg.MeshQuery.getElementCentroid(elementIndex)

Returns the centroid of the given element

Arguments
  • elementIndex (number) –

Return type

cee.Vec3

If a mesh is specified in the constructor, the coordinate system of the returned data will be in mesh local coordinates. If a state and part index is specified in the constructor, the coordinate system of the returned data will be in global coordinates.

getElementNodeIndices

cee.usg.MeshQuery.getElementNodeIndices(elementIndex)

Returns an array containing the node indices for each element node in the given element

Arguments
  • elementIndex (number) –

Return type

ArrayLike[number]

getElementSurfaceNormal

cee.usg.MeshQuery.getElementSurfaceNormal(elementIndex)

Returns the surface normal of the given element

Arguments
  • elementIndex (number) –

Return type

cee.Vec3

If a mesh is specified in the constructor, the coordinate system of the returned data will be in mesh local coordinates. If a state and part index is specified in the constructor, the coordinate system of the returned data will be in global coordinates.

getNodePosition

cee.usg.MeshQuery.getNodePosition(nodeIndex)

Returns the position of the given node in the given part in this state.

Arguments
  • nodeIndex (number) –

Return type

cee.Vec3

If a mesh is specified in the constructor, the coordinate system of the returned data will be in mesh local coordinates. If a state and part index is specified in the constructor, the coordinate system of the returned data will be in global coordinates.