OpenSees#

class modularbuildingpy.core._opensees.OpenSees#

Bases: object

This class is used to call OpenSeesPy methods. It is used as a wrapper for OpenSeesPy module. All methods of OpenSeesPy module can be called using this class. It also checks the version of OpenSeesPy and warns the user if it is not compatible with ModularBuildingPy.

Caution

Please do not use this class directly if nprocs keyword argument for Analyze class is greater than 1.

Parameters:

None

Keyword Arguments:

None

Returns:

None

Examples

import modularbuildingpy as mbpy

ops = mbpy.OpenSees()

ops.wipe()
ops.model("basic", "-ndm", 3, "-ndf", 6)
check_internet_access() bool#

This method checks if there is an internet connection available. If there is no internet connection, it warns the user.

Parameters:

None

Keyword Arguments:

None

Returns:

bool

True if there is an internet connection, False otherwise.

check_update() None#

This method checks if the version of OpenSeesPy is compatible with ModularBuildingPy. If it is not compatible, it warns the user.

Parameters:

None

Keyword Arguments:

None

Returns:

None