ansys.dyna.core.pre.dynadem#

Module for creating a DEM DYNA input deck.

Classes#

DynaDEM

Contains methods for creating a keyword related to a discrete element method.

DEMAnalysis

Activates DEM analysis and defines associated control parameters.

Module Contents#

class ansys.dyna.core.pre.dynadem.DynaDEM[source]#

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

Contains methods for creating a keyword related to a discrete element method.

set_des(ndamp=0.0, tdamp=0.0, frics=0.0, fricr=0.0, normk=0.01, sheark=0.2857)[source]#

Set global control parameters for discrete element spheres.

Parameters:
ndampfloat, optional

Normal damping coefficient. The default is 0.0.

tdampfloat, optional

Tangential damping coefficient. The default is 0.0.

fricsfloat, optional

Static coefficient of friction. The default is 0.0.

  • EQ.0: 3 DOF

  • NE.0: 6 DOF

fricrfloat, optional

Rolling friction coefficient. The default is 0.0.

normkfloat, optional

Scale factor of the normal spring constant. The default is 0.01.

shearkfloat, optional

Ratio between the sheark/normk. The default is 0.2857.

Returns:
bool

True when successful, False when failed.

create_define_de_mesh_surface(sid, type, despid, desxid, nquad=1, nsid=0, rsf=1.0)[source]#

Create discrete element sphere (DES) elements on the surface of shell elements.

Parameters:
sidint

Part or part set ID for the region of the mesh to place DES elements on.

typeint

SID type:

  • type=0: Part set ID

  • type=1: Part ID

despidint

Part ID for the generated DES elements.

desxidint

Section ID for the generated DES elements.

nquadint, optional

Number of equally spaced DES elements created on a shell element in each local shell direction. The default is 1.

nsidint, optional

If defined, this card creates a node set with ID NSID for the nodes generated by this card. The default is 0.

rsffloat, optional

Scale factor for determining the DES radius. The default is 1.0.

Returns:
bool

True when successful, False when failed.

save_file()[source]#

Save keyword files.

Returns:
bool

True when successful, False when failed.

class ansys.dyna.core.pre.dynadem.DEMAnalysis[source]#

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

Activates DEM analysis and defines associated control parameters.

defined_des = False[source]#
stub[source]#
type = 'analysis_dem'[source]#
set_des(normal_damping_coeff=0.0, tangential_damping_coeff=0.0, static_friction_coeff=0.0, rolling_friction_coeff=0.0, normal_spring_constant_sf=0.01, ratio=0.2857)[source]#

Set global control parameters for discrete element spheres.

Parameters:
normal_damping_coefffloat, optional

Normal damping coefficient. The default value is 0.0.

tangential_damping_coefffloat, optional

Tangential damping coefficient. The default value is 0.0.

static_friction_coefffloat, optional

Static coefficient of friction. The default is 0.0.

rolling_friction_coefffloat, optional

Rolling coefficient of friction. The default is 0.0.

normal_spring_constant_sffloat, optional

Normal spring constant. The default is 0.01.

ratiofloat, optional

Ratio. The default is 0.2857.

create()[source]#

Create a DEM analysis.