ansys.dyna.core.pre.model.Model#

class ansys.dyna.core.pre.model.Model(stub)#

Contains all information about Ansys PyDYNA Model.

stub#
add_bdy_spc(nodes)#

Add boundary spc nodes.

add_init_velocity(nodes)#

Add initial velocity nodes.

add_rigidwall(data: List)#

Add rigidwall data.

get_solid_elements() List#

Get the solid elements.

Returns:
List

solid element connectivity,list = [[n1,n2,n3,n4,n5,n6,n7,n8],[…],…]

get_shell_elements() List#

Get the shell elements.

Returns:
list

list[0],solid element connectivity,list[0] = [[n1,n2,n3,n4,n5,n6,n7,n8],[…],…]

get_nodes() List#

Get nodes.

Returns:
list

node coordinates,list = [[x1,y1,z1],[x2,y2,z2],…]

get_part(id: int) ansys.dyna.core.pre.part.Part#

Get the part by ID.

Parameters:
idint

ID of the part.

Returns:
Part

Part or None if the given part ID doesn’t exist.

get_init_velocity() List#

Get initial velocity data.

get_bdy_spc() List#

Get boundary spc data.

get_rigidwall(id)#

Get rigidwall data.

property parts: List[ansys.dyna.core.pre.part.Part]#

Get the list of parts for the model.

Returns:
List[Part]

List of parts for the model.