StructuredMesh#

class ansys.dyna.core.pre.dynasale.StructuredMesh(control_points_x, control_points_y, control_points_z)#

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

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

Overview#

fill

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

refine

Refine existing S-ALE meshes.

initial_detonation

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

create

Create a mesh.

Import detail#

from ansys.dyna.core.pre.dynasale import StructuredMesh

Attribute detail#

StructuredMesh.stub#
StructuredMesh.control_points_x#
StructuredMesh.control_points_y#
StructuredMesh.control_points_z#
StructuredMesh.refine_factor_x = 1#
StructuredMesh.refine_factor_y = 1#
StructuredMesh.refine_factor_z = 1#
StructuredMesh.fillings = []#
StructuredMesh.type = 'structured_mesh'#

Method detail#

StructuredMesh.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)#

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.

StructuredMesh.refine(refine_factor_x=1, refine_factor_y=1, refine_factor_z=1)#

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.

StructuredMesh.initial_detonation(detonation_point)#

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

Parameters:
detonation_pointPoint

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

StructuredMesh.create()#

Create a mesh.