Skip to content

Modeler

SectionModeler

addNode(ids, x, y)

Add node to current section model

Add node to current section model. Parameter ids must be unique Args: ids: unique ids x: x-location y: y-location

Returns:

Type Description
bool

True if ids is unique and there is a current model

calcPointBarycenter(area=True)

For section formed also with circle elements gives barycenter point

For section formed also with circle elements gives barycenter point. If area is setted as True, the function calculates barycenter with weight from area.

Parameters:

Name Type Description Default
area bool

If True the barycenter is calculated using element

True

Returns:

Type Description
Point 2d

Barycenter of points

domainBounding()

Returns:

Type Description
Tuple[float, float, float, float, float, float]

[Fz_min, Fz_max, Mx_min, Mx_max, My_min, My_max,]

getCurrent()

Get current model index

Returns:

Type Description
int

if model doesn't have current section return -1.

getNodes()

Method that retrives nodes from current model

The method retrives nodes in current model. If there isn't none model already current gets empy dict.

Returns:

Type Description
Dict[int, XStruNode2D]

Dict[int, XStruNode2D]

getSolidNodes()

Method that retrives solid nodes from current model

The method retrives solid nodes (nodes connected to solid element as triangles) in current model. If there isn't none model already current gets empy dict.

Returns:

Type Description
Dict[int, XStruNode2D]

Dict[int, XStruNode2D]

nodesSize()

Size of nodes for current model

Returns:

Type Description
int

A positive integer if there is a current model or -1