ansys.dyna.core.pre.dynasale#
Module for creating a S-ALE (Structured ALE) DYNA input deck.
Classes#
Generic enumeration. |
|
Generic enumeration. |
|
Provides spacing information for generating a 3D S-ALE mesh. |
|
Generates a structured 2D or 3D mesh and invokes the S-ALE solver. |
|
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.
- 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.
- class ansys.dyna.core.pre.dynasale.ControlPoint(number, position, ratio)[source]#
Provides spacing information for generating a 3D S-ALE mesh.
- Parameters:
- 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.
- 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_name
str
Material name.
- geometry_type
str
Geometry type. The default is
"Null"
. Options are:BOXCOR
BOXCPT
CYLINDER
PARTSET
PART
PLANE
SEGSET
SPHERE
- nsample
int
,optional
Number of sampling points. The default is
4
.- define_geometry_parameters
list
List of values having different definitions for different options. The default is
[0, 0, 0, 0, 0]
.- in_out
int
,optional
Flag for whether to fill inside or outside of the geometry. The default is
INSIDE_THE_GEOMETRY
.- vid
int
,optional
Flag for assigning the initial velocity to the material filling the domain. The default is
0
.- reference_pressure
- material_name
- 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.
- class ansys.dyna.core.pre.dynasale.DynaSALE[source]#
Bases:
ansys.dyna.core.pre.dynabase.DynaBase
Sets up the S-ALE simulation process.
- set_analysis_type(num_of_cycle=1, method=AdvectionMethod.DONOR_CELL_WITH_HALF_INDEX_SHIFT, background_pressure=0)[source]#
Set the analysis type.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.