o3seespy.node¶
- class o3seespy.command.node.Node(osi, x: float, y=None, z=None, vel=None, acc=None, mass: Optional[list] = None, x_mass=None, y_mass=None, z_mass=None, x_rot_mass=None, y_rot_mass=None, z_rot_mass=None, tag=None, build=1)[source]¶
Bases:
OpenSeesObjectAn OpenSees node
- Parameters
osi (o3seespy.opensees_instance.OpenSeesInstance object) – An instance of OpenSees
x (float) – x-coordinate
y (float, optional) – y-coordinate
z (float, optional) – z-coordinate
vel (iterable object, optional) – nodal velocities (x, y, z)
acc (iterable object, optional) –
mass (iterable object, option) – nodal masses
- op_base_type = 'node'¶
- op_type = 'node'¶
- o3seespy.command.node.build_node_tag_hash_dict_from_mesh(ndm, xs, ys, zs=None, active=None, init_tag=0, nsf=8)[source]¶
Creates an array of nodes that in vertical lines, but vary in height
The mesh has len(xs) nodes in the x-direction and len(ys[0]) in the y-direction. If zs is not None then has len(zs) in the z-direction.
- Parameters
osi –
xs –
ys –
zs –
active –
- Returns
axis-0 = x-direction axis-1 = y-direction axis-2 = z # not included if len(zs)=1 or zs=None
- Return type
np.array
- o3seespy.command.node.build_regular_node_mesh(osi, xs, ys, zs=None, active=None, tags=None)[source]¶
Creates an array of nodes that are in a regular mesh
The mesh has len(xs) nodes in the x-direction and len(ys) in the y-direction. If zs is not None then has len(zs) in the z-direction.
- Parameters
osi –
xs –
ys –
zs –
active –
tags (array_like) – array of node tags
- Returns
axis-0 = x-direction axis-1 = y-direction axis-2 = z # not included if len(zs)=1 or zs=None
- Return type
np.array
- o3seespy.command.node.build_varied_xy_node_mesh(osi, xs, ys, zs=None, active=None, tags=None)[source]¶
Creates an array of nodes that vary in both x and y but are still in a grid.
The mesh has len(xs)=ln(ys) nodes in the x-direction and len(ys[0]) in the y-direction. If zs is not None then has len(zs) in the z-direction.
- Parameters
osi –
xs –
ys –
zs –
active –
- Returns
axis-0 = x-direction axis-1 = y-direction axis-2 = z # not included if len(zs)=1 or zs=None
- Return type
np.array
- o3seespy.command.node.build_varied_y_node_mesh(osi, xs, ys, zs=None, active=None)[source]¶
Creates an array of nodes that in vertical lines, but vary in height
The mesh has len(xs)=ln(ys) nodes in the x-direction and len(ys[0]) in the y-direction. If zs is not None then has len(zs) in the z-direction.
- Parameters
osi –
xs –
ys –
zs –
active –
- Returns
axis-0 = x-direction axis-1 = y-direction axis-2 = z # not included if len(zs)=1 or zs=None
- Return type
np.array