ansys.dyna.core.pre.dynamech#

Module for setting up explicit or implicit analysis.

Classes#

AnalysisType

Generic enumeration.

DynaMech

Defines a Mechanical analysis.

Airbag

Defines an airbag or control volume.

Module Contents#

class ansys.dyna.core.pre.dynamech.AnalysisType[source]#

Bases: ansys.dyna.core.pre.dynabase.Enum

Generic enumeration.

Derive from this class to define new enumerations.

EXPLICIT = 1[source]#
IMPLICIT = 2[source]#
NONE = 3[source]#
class ansys.dyna.core.pre.dynamech.DynaMech(analysis=AnalysisType.EXPLICIT)[source]#

Bases: ansys.dyna.core.pre.dynabase.DynaBase

Defines a Mechanical analysis.

casetype[source]#
analysis[source]#
create_control_output(npopt=0, neecho=0)[source]#

Set miscellaneous output parameters.

Parameters:
npoptint, optional

Print suppression during the input phase flag for the D3HSP file. The default is 0. Options are:

  • EQ.0: No suppression.

  • EQ.1: Nodal coordinates, element connectivities, rigid wall definitions, nodal SPCs, initial velocities, initial strains, adaptive constraints, and SPR2/SPR3 constraints are not printed.

neechoint, optional

Print suppression during the input phase flag for the echo file. The default is 0. Options are:

  • EQ.0: All data is printed.

  • EQ.1: Nodal printing is suppressed.

  • EQ.2: Element printing is suppressed.

  • EQ.3: Both nodal and element printing is suppressed.

Returns:
bool

True when successful, False when failed.

set_init_velocity(translational=Velocity(0, 0, 0), rotational=RotVelocity(0, 0, 0))[source]#

Define initial nodal point velocities using a nodal set ID.

Parameters:
nsidint

Nodal set ID.

translationalVelocity

Initial translational velocity in the x,y,z-direction.

rotationalRotVelocity

Initial rotational velocity about the x,y,z-axis.

Returns:
bool

True when successful, False when failed.

create_defineorientation(vid, iop, vector, node1, node2)[source]#

Define orientation vectors for discrete springs and dampers.

Parameters:
vidint

Orientation vector ID.

iopint

Options are:

  • EQ.0: Deflections/rotations are measured and forces/moments are applied along the following orientation vector.

  • EQ.1: Deflections/rotations are measured and forces/moments are applied along the axis between the two spring/damper nodes projected onto the plane normal to the following orientation vector.

  • EQ.2: Deflections/rotations are measured and forces/moments are applied along a vector defined by the following two nodes.

  • EQ.3: Deflections/rotations are measured and forces/moments are applied along the axis between the two spring/damper nodes projected onto the plane normal to the a vector defined by the following two nodes.

vectorlist [x,y,z]

x,y,z : x,y,z-value of the orientation vector.

node1int

Node 1 ID.

node2int

Node 2 ID.

Returns:
bool

True when successful, False when failed.

create_shellset(option, title, sid, eids)[source]#

Define a set of shell elements with optional identical or unique attributes.

Parameters:
optionstr

Available options. Choices are ,``LIST``, and GENERAL.

titlestr

Title for the shell set.

sidint

Set ID.

eidslist

List of shell element IDs.

Returns:
bool

True when successful, False when failed.

create_solidset(title, sid, ki)[source]#

Define a set of solid elements.

Parameters:
titlestr

Title for the set of solid elements.

sidint

Set ID.

kilist

Solid element IDs.

Returns:
bool

True when successful, False when failed.

create_section_solid(title, secid, elform)[source]#

Define section properties for solid continuum and fluid elements.

Parameters:
titlestr

Title for section solid.

secidint

Section ID. SECID is referenced on the \*PART card. A unique number must be specified.

elformint

Element formulation options.

Returns:
bool

True when successful, False when failed.

create_section_discrete(secid, dro=0, kd=0, v0=0, cl=0, fd=0, cdl=0, tdl=0)[source]#

Defined spring and damper elements for translation and rotation.

Parameters:
secidint

Section ID.

droint, optional

Displacement/rotation. The default is 0. Options are:

  • EQ.0: Material describes a translational spring/damper.

  • EQ.1: Material describes a torsional spring/damper.

kdfloat, optional

Dynamic magnification factor. The default is 0.

v0float, optional

Test velocity. The default is 0.

clfloat, optional

Clearance. The default is 0.

fdfloat, optional

Failure deflection. The default is 0.

cdlfloat, optional

Deflection limit in compression. The default is 0.

td1float, optional

Deflection limit in tension. The default is 0.

Returns:
bool

True when successful, False when failed.

create_hourglass(ghid, ihq, qm=0.1, q1=1.5, q2=0.06, qb=1e-09, qw=1e-09)[source]#

Define hourglass and bulk viscosity properties.

Parameters:
ghidint

Hourglass ID. A unique number or label must be specified.

ihqint

Hourglass control type.

qmfloat, optional

Hourglass coefficient. The default is 0.1.

q1float, optional

Quadratic bulk viscosity coefficient. The default is 1.5.

q2float, optional

Linear bulk viscosity coefficient. The default is 0.06.

qbfloat, optional

Hourglass coefficient for shell bending. The default is 1e-09.

qwfloat, optional

Hourglass coefficient for shell warping. The default is 1e-09.

Returns:
bool

True when successful, False when failed.

save_file(defaultsetting=1)[source]#

Save keyword files.

Returns:
bool

True when successful, False when failed.

class ansys.dyna.core.pre.dynamech.Airbag(set, heat_capacity_at_constant_volume=0, heat_capacity_at_constant_pressure=0, input_gas_temperature=0, input_mass_flow_rate=Curve(x=[], y=[]), shape_factor_for_exit_hole=0, ambient_pressure=0, ambient_density=0)[source]#

Bases: ansys.dyna.core.pre.dynabase.BaseObj

Defines an airbag or control volume.

Parameters:
SetSegmentSet or PartSet

Set. Options are:

  • EQ.0: Segment set ID.

  • EQ.1: Part set ID.

heat_capacity_at_constant_volumefloat, optional

Heat capacity at constant volume. The default is 0.

heat_capacity_at_constant_pressurefloat, optional

Heat capacity at constant pressure. The default is 0.

input_gas_temperaturefloat, optional

Temperature of the input gas. The default is 0.

input_mass_flow_rateint, optional

Load curve ID specifying the input mass flow rate. The default is 0.

shape_factor_for_exit_holefloat, optional

Shape factor for exit hole. The default is 0.

ambient_pressurefloat, optional

Ambient pressure. The default is 0.

ambient_densityfloat, optional

Ambient density. The default is 0.

Returns:
bool

True when successful, False when failed..

stub[source]#
cv[source]#
cp[source]#
t[source]#
lcid[source]#
mu[source]#
pe[source]#
ro[source]#
sid[source]#
type = 'airbag'[source]#
create()[source]#

Create an airbag.