ansys.dyna.core.pre.dynaisph#
Module for creating an ISPH (incompressible smooth particle hydrodynamics) DYNA input deck.
Classes#
Contains methods for creating a keyword related to ISPH. |
|
Provide controls related to ISPH. |
|
Defines section properties for ISPH particles. |
|
Measures ISPH mass flow rate across a defined plane. |
|
Generates ISPH particles inside a box. |
|
Generates and places ISPH elements on the surface of triangular shell elements. |
Module Contents#
- class ansys.dyna.core.pre.dynaisph.DynaISPH[source]#
Bases:
ansys.dyna.core.pre.dynabase.DynaBase
Contains methods for creating a keyword related to ISPH.
- set_des(num_timestep=1, boxid=0, space_dimension=3, neighbors=150, approximation_theory=0, max_velocty=1000000000000000.0)[source]#
Provide controls related to ISPH.
- Parameters:
- num_timestep
int
,optional
Number of time steps between particle sorting. The default is
1
.- boxid
int
,optional
Box ID. The default is
0
. ISPH approximations are computed inside the specified box. When a particle has gone outside this box, it is deactivated.- space_dimension
int
,optional
Space dimension for ISPH particles. The default is
3
. Options are:EQ.3: 3D problems
EQ.2: 2D plane strain problems
EQ.-2: 2D axisymmetric problems
- neighbors
int
,optional
Initial number of neighbors per particle. The default is
150
.- approximation_theory
int
,optional
Particle approximation theory. The default is
0
.- max_velocty
float
,optional
Maximum value for velocity for the ISPH particles. The default is
1000000000000000.0
.
- num_timestep
- Returns:
- bool
True
when successful,False
when failed.
- class ansys.dyna.core.pre.dynaisph.ISPHAnalysis(num_timestep=1)[source]#
Provide controls related to ISPH.
- set_num_timestep(num_timestep)[source]#
Set the number of time steps between particle sorting.
- Parameters:
- num_timestep
int
,optional
Number of time steps between particle sorting. The default is
1
.
- num_timestep
- set_box(box)[source]#
Set the box. ISPH approximations are computed inside a specified box.
- Parameters:
- box
Box
Box for computing ISHPH approximattions. When a particle has gone outside this box, it is deactivated.
- box
- set_neighbors(neighbors)[source]#
Set the initial number of neighbors per particle.
- Parameters:
- neighbors
int
,optional
Initial number of neighbors per particle.
- neighbors
- set_particle_deactivation(deactivation)[source]#
Set the type of BEM matrices and the way they are assembled.
- Parameters:
- deactivation
- class ansys.dyna.core.pre.dynaisph.SPHSection(cslh=1.2, hmin=0.2, hmax=2.0, sphini=0)[source]#
Defines section properties for ISPH particles.
- class ansys.dyna.core.pre.dynaisph.MassflowPlane(particles, surface)[source]#
Measures ISPH mass flow rate across a defined plane.
- Parameters:
- particles
NodeSet
,PartSet
Node set or part set specifying the ISPH particles to measure.
- surface
PartSet
Part set ID or part ID defining the surface across which to measure the flow rate.
- particles
- class ansys.dyna.core.pre.dynaisph.ISPHFluidPart(pid, minpoint, length, numdirx, numdiry, numdirz)[source]#
Bases:
ansys.dyna.core.pre.dynabase.Part
Generates ISPH particles inside a box.
- Parameters:
- class ansys.dyna.core.pre.dynaisph.ISPHStructPart(pid, couple_partset, space)[source]#
Bases:
ansys.dyna.core.pre.dynabase.Part
Generates and places ISPH elements on the surface of triangular shell elements.
- Parameters:
- set_smoothing_length(initial, min, max, optional)[source]#
Calculate the smoothing length of the particles.
- Parameters:
- Parameters
- ———-
- initial
float
Constant for calculating the initial smoothing length of the particles.
- min
float
Scale factor for the minimum smoothing length.
- max
float
Scale factor for the maximum smoothing length.
- optional
float
,optional
Initial smoothing length, which overrides the true smoothing length.