QueryBulkCalculation

class cee.ug.QueryBulkCalculation()

Calculation of bulk values from cutting planes and visible surfaces of parts.

The following values are computed on the cutting plane/part surface:

  • Scalar value: Min/Max/Average/Resultant(sum of Area*EltResult for all surface elements).
  • Geometry: Area, surface (triangle) count, node count, surface centroid.

For scalar results, a per element result (maybe interpolated) is used for the calculations.

For vector results, a dot product between the per element vector result (maybe interpolated) and the surface normal is used to compute the scalar value for the element. This is then used to compute min/max/avg/resultant. This will enable computation of flux/flow through the surface.

Note that bulk calculations can be performed on any result, not only the ones currently mapped on the model/cutting plane.

For cutting planes, bulk values will be calculated per region, causing one cutting plane to provide more than one region if it consists of two separate spacial regions.

Constructors

cee.ug.QueryBulkCalculation.constructor()
QueryBulkCalculation(model: RemoteModel): QueryBulkCalculation

Parameters

Returns: QueryBulkCalculation

Accessors

cee.ug.QueryBulkCalculation.includeRegionTriangles()
get includeRegionTriangles(): boolean

Specify if the cutting plane queries should include triangle tessellation for each reg

Returns: boolean

set includeRegionTriangles(includeTriangles: boolean): void

Parameters

includeTriangles: boolean

Returns: void

Methods

cee.ug.QueryBulkCalculation.executeCuttingPlaneQuery()
executeCuttingPlaneQuery(frameIndex: number, cuttingPlaneId: number, resultType: ResultType, resultId: number, callback: QueryBulkCalculationCallback): void

Executes the query for the given cutting plane.

The query will return bulk values for each region of the cutting plane. The cutting plane will be split into one region for each part, and also further split if the cutting plane for one part consists of two or more spatially separate regions.

Supported result types are: ResultType.SCALAR and ResultType.VECTOR

Parameters

frameIndex: number

cuttingPlaneId: number

resultType: ResultType

resultId: number

callback: QueryBulkCalculationCallback

Returns: void

cee.ug.QueryBulkCalculation.executePartQuery()
executePartQuery(frameIndex: number, geometryIndex: number, partId: number, resultType: ResultType, resultId: number, callback: QueryBulkCalculationCallback): void

Executes the query for the given part.

The bulk values are computed based on the elements referenced by the visible surfaces of the part.

This query will provide one QueryBulkCalculationValues object with the bulk values for this part.

Supported result types are: ResultType.SCALAR and ResultType.VECTOR

Parameters

frameIndex: number

geometryIndex: number

partId: number

resultType: ResultType

resultId: number

callback: QueryBulkCalculationCallback

Returns: void