ansys.dyna.core.pre.dynasale#

Module for creating a S-ALE (Structured ALE) DYNA input deck.

Classes#

AdvectionMethod

Generic enumeration.

FillDirection

Generic enumeration.

ControlPoint

Provides spacing information for generating a 3D S-ALE mesh.

StructuredMesh

Generates a structured 2D or 3D mesh and invokes the S-ALE solver.

DynaSALE

Sets up the S-ALE simulation process.

Module Contents#

class ansys.dyna.core.pre.dynasale.AdvectionMethod[source]#

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

Generic enumeration.

Derive from this class to define new enumerations.

DONOR_CELL_WITH_HALF_INDEX_SHIFT = 1[source]#
VAN_LEER_WITH_HIS = 2[source]#
DONOR_CELL_WITH_HIS = 3[source]#
FINITE_VOLUME_METHOD = 6[source]#
class ansys.dyna.core.pre.dynasale.FillDirection[source]#

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

Generic enumeration.

Derive from this class to define new enumerations.

INSIDE_THE_GEOMETRY = 0[source]#
OUTSIDE_THE_GEOMETRY = 1[source]#
class ansys.dyna.core.pre.dynasale.ControlPoint(number, position, ratio)[source]#

Provides spacing information for generating a 3D S-ALE mesh.

Parameters:
numberint

Control point node number.

positionfloat

Control point position.

ratiofloat

Ratio for progressive mesh spacing.

number[source]#
position[source]#
ratio[source]#
class ansys.dyna.core.pre.dynasale.StructuredMesh(control_points_x, control_points_y, control_points_z)[source]#

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

Generates a structured 2D or 3D mesh and invokes the S-ALE solver.

stub[source]#
control_points_x[source]#
control_points_y[source]#
control_points_z[source]#
refine_factor_x = 1[source]#
refine_factor_y = 1[source]#
refine_factor_z = 1[source]#
fillings = [][source]#
type = 'structured_mesh'[source]#
fill(material, geometry_type='NULL', nsample=4, define_geometry_parameters=[0, 0, 0, 0, 0], inout=FillDirection.INSIDE_THE_GEOMETRY, vid=0, reference_pressure=0)[source]#

Perform volume-filling operations on a S-ALE mesh.

Parameters:
material_namestr

Material name.

geometry_typestr

Geometry type. The default is "Null". Options are:

  • BOXCOR

  • BOXCPT

  • CYLINDER

  • PARTSET

  • PART

  • PLANE

  • SEGSET

  • SPHERE

nsampleint, optional

Number of sampling points. The default is 4.

define_geometry_parameterslist

List of values having different definitions for different options. The default is [0, 0, 0, 0, 0].

in_outint, optional

Flag for whether to fill inside or outside of the geometry. The default is INSIDE_THE_GEOMETRY.

vidint, optional

Flag for assigning the initial velocity to the material filling the domain. The default is 0.

reference_pressure
Returns:
bool

True when successful, False when failed.

refine(refine_factor_x=1, refine_factor_y=1, refine_factor_z=1)[source]#

Refine existing S-ALE meshes.

Parameters:
refine_factor_xint, optional

Refinement factor for the x-direction. The default is 1.

refine_factor_yint, optional

Refinement factor for the y-direction. The default is 1.

refine_factor_zint, optional

Refinement factor for the z-direction. The default is 1.

initial_detonation(detonation_point)[source]#

Define a point for initiating the location of a high-explosive detonation.

Parameters:
detonation_pointPoint

Coordinates (x,y,z) of the detonation point.

create()[source]#

Create a mesh.

class ansys.dyna.core.pre.dynasale.DynaSALE[source]#

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

Sets up the S-ALE simulation process.

set_termination(endtime)[source]#

Set the time for ending the simulation.

Parameters:
endtimefloat

Time for ending the simulation.

Returns:
bool

True when successful, False when failed.

set_output_interval(database_plot_interval)[source]#

Request binary output.

Parameters:
database_plot_intervalfloat

Time interval between output states.

Returns:
bool

True when successful, False when failed.

set_analysis_type(num_of_cycle=1, method=AdvectionMethod.DONOR_CELL_WITH_HALF_INDEX_SHIFT, background_pressure=0)[source]#

Set the analysis type.

Parameters:
num_of_cyclefloat, optional

Total time of simulation for the fluid problem. The default is 1.

methodfloat, optional

Time step for the fluid problem. The default is DONOR_CELL_WITH_HALF_INDEX_SHIFT.

background_pressureint, optional

Reference pressure for computing the internal forces. The default is 0.

Returns:
bool

True when successful, False when failed.

set_output_database(matsum=0, glstat=0)[source]#

Obtain output files containing the results.

Parameters:
matsumfloat, optional

Time interval between outputs of part energies. The default is 0.

glstatfloat, optional

Time interval between outputs of global statistics and energies. The default is 0.

Returns:
bool

True when successful, False when failed.

save_file()[source]#

Save keyword files.

Returns:
bool

True when successful, False when failed.