Analyze#

class modularbuildingpy.core._analyze.Analyze(name, directory, logger, material, generate, **kwargs)#

Bases: object

This class is used to analyze the model which was created using Generate class. It has methods to create nodes, diaphragms, elements, sections, materials, and geometric transformations for OpenSeesPy. It also has methods to add mass and gravity loads to the model. When the Model class is initialized, user can define nprocs keyword argument to use multiple cores to perform static or dynamic analysis. If nprocs is greater than 1, then the analysis will be performed using ipyparallel (externally). If nprocs is equal to 1, then the analysis will be performed using the current kernel.

Caution

This class is not meant to be used directly. Please use the get_analyze() method of Model class to call methods and attributes.

Parameters:#

name: str

Name of the model.

directory: str

Path to save files.

logger: logging.Logger

Logger object.

material: _Material

Material class.

generate: _Generate

Generate class.

generate_kwargs: dict

Keyword arguments for Generate class.

Returns:#

None

add_mass(*args, **kwargs) None#
add_rayleigh_damping(*args, **kwargs) None#
add_recorder(*args, **kwargs)#
assign_brace(*args, **kwargs) None#
assign_ceiling_beam(*args, **kwargs) None#
assign_column(*args, **kwargs) None#
assign_diaphragm(*args, **kwargs) None#
assign_element(*args, **kwargs) None#
assign_floor_beam(*args, **kwargs) None#
assign_geo_transf(*args, **kwargs) None#
assign_hor_con(*args, **kwargs) None#
assign_node(*args, **kwargs) None#
assign_section_material(*args, **kwargs) None#
assign_ver_con(*args, **kwargs) None#
declare_global_var(*args, **kwargs) None#
initialize_ops(*args, **kwargs) None#
plot_elements_3D(plot_kwargs={}, **kwargs) tuple#
plot_mode_shape_2D(mode=None, **kwargs) tuple#
remove_recorder(*args, **kwargs) None#
run(**kwargs)#
timer(*args, **kwargs)#