ansys.dyna.core.pre.model#

Module containing the managing logic of the PyDYNA model.

Classes#

Model

Contains all information about Ansys PyDYNA Model.

Module Contents#

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

Contains all information about Ansys PyDYNA Model.

stub[source]#
add_bdy_spc(nodes)[source]#

Add boundary spc nodes.

add_init_velocity(nodes)[source]#

Add initial velocity nodes.

add_rigidwall(data: List)[source]#

Add rigidwall data.

get_solid_elements() List[source]#

Get the solid elements.

Returns:
List

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

get_shell_elements() List[source]#

Get the shell elements.

Returns:
list

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

get_nodes() List[source]#

Get nodes.

Returns:
list

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

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

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[source]#

Get initial velocity data.

get_bdy_spc() List[source]#

Get boundary spc data.

get_rigidwall(id)[source]#

Get rigidwall data.

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

Get the list of parts for the model.

Returns:
List[Part]

List of parts for the model.