ansys.dyna.core.pre.dynabase#
Module for creating a DYNA input deck.
Classes#
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Defines a box-shaped volume. |
|
Defines a curve as a function of time. |
|
Defines a function that can be referenced by a limited number of keyword options. |
|
Define a table,a curve ID is specified for each value defined in the table. |
|
Defines a point. |
|
Defines a direction. |
|
Defines a transformation. |
|
Defines a translational velocity. |
|
Defines a rotational velocity. |
|
Define the base object. |
|
Contains the parameter types. |
|
Contains methods for creating a general LS-DYNA keyword. |
|
Defines the base class for all set classes. |
|
Defines a nodal set with some identical or unique attributes. |
|
Contains the enums for setting types. |
|
Includes nodal points of element sets. |
|
include the nodes inside boxes. |
|
Defines a set of parts with optional attributes. |
|
Defines a set of segments with optional identical or unique attributes. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Defines cross-sectional properties for beams, trusses, discrete beams, and cable elements. |
|
Defines section properties for shell elements. |
|
Defines section properties for isogeometric shell elements. |
|
Defines the part object. |
|
Defines a beam part. |
|
Defines a shell part. |
|
Defines an isogeometric shell part. |
|
Defines a solid part. |
|
Generic enumeration. |
|
Defines a discrete part. |
|
Stores the part list. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Activates implicit analysis and defines associated control parameters. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Activates thermal analysis and defines associated control parameters. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Defines a contact interface. |
|
Provide a way of treating interaction between disjoint parts. |
|
Create a contact group. |
|
Provides a way of constraining degrees of freedom to move together in some way. |
|
Provides a way of defining imposed motions on boundary nodes. |
|
Provides a way of initializing velocities and detonation points. |
|
Defines a rigid wall with a cylinder form. |
|
Defines a rigid wall with a sphere form. |
|
Defines planar rigid walls with either finite or infinite size. |
|
Generic enumeration. |
|
Defines body force loads using global axes directions. |
Module Contents#
- class ansys.dyna.core.pre.dynabase.Motion[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.RWMotion[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.DOF[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.Switch[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.InvariantNode[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.EnergyFlag[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.HourglassControl[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.BulkViscosity[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.CaseType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.OutputEcho[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.Box(xmin=0, xmax=0, ymin=0, ymax=0, zmin=0, zmax=0)[source]#
Defines a box-shaped volume.
- class ansys.dyna.core.pre.dynabase.Curve(sfo=1, x=[], y=[], func=None, title='')[source]#
Defines a curve as a function of time.
For example,
load (ordinate value)
.
- class ansys.dyna.core.pre.dynabase.Function(Function=None)[source]#
Defines a function that can be referenced by a limited number of keyword options.
- class ansys.dyna.core.pre.dynabase.Table2D(title='')[source]#
Define a table,a curve ID is specified for each value defined in the table.
- class ansys.dyna.core.pre.dynabase.Transform(option=None, param1=0, param2=0, param3=0, param4=0, param5=0, param6=0, param7=0)[source]#
Defines a transformation.
- class ansys.dyna.core.pre.dynabase.Velocity(x=0, y=0, z=0)[source]#
Defines a translational velocity.
- class ansys.dyna.core.pre.dynabase.RotVelocity(x=0, y=0, z=0)[source]#
Defines a rotational velocity.
- class ansys.dyna.core.pre.dynabase.ParameterType[source]#
Bases:
enum.Enum
Contains the parameter types.
- class ansys.dyna.core.pre.dynabase.DynaBase[source]#
Contains methods for creating a general LS-DYNA keyword.
- set_timestep(tssfac=0.9, isdo=0, timestep_size_for_mass_scaled=0.0, max_timestep=None)[source]#
Set the structural time step size control using different options.
- Parameters:
- tssfac
float
,optional
Scale factor for computed time step. The default is
0.9
.- isdo
int
,optional
Basis of the time size calculation for four-node shell elements. The default is
0
.- timestep_size_for_mass_scaled
float
,optional
Time step size for mass scaled solutions. The default is
0.0
.- max_timestep
Curve
,optional
Load curve that limits the maximum time step size. The default is
None
.
- tssfac
- Returns:
- bool
True
when successful,False
when failed.
- set_accuracy(objective_stress_updates=Switch.OFF, invariant_node_number=InvariantNode.OFF, partsetid_for_objective_stress_updates=0, implicit_accuracy_flag=Switch.OFF, explicit_accuracy_flag=Switch.OFF)[source]#
Define control parameters that can improve the accuracy of the calculation.
- Parameters:
- objective_stress_updates
int
Global flag for 2nd order objective stress updates.
- invariant_node_number
int
Invariant node numbering for shell and solid elements.
- partsetid_for_objective_stress_updates
int
,optional
Part set ID for objective stress updates. The default is
0
.- implicit_accuracy_flag
int
Implicit accuracy flag.
- explicit_accuracy_flag
float
Explicit accuracy parameter.
EQ.0.0: Off
GT.0.0: On
- objective_stress_updates
- Returns:
- bool
True
when successful,False
when failed.
- set_energy(hourglass_energy=EnergyFlag.NOT_COMPUTED, rigidwall_energy=EnergyFlag.COMPUTED, sliding_interface_energy=EnergyFlag.NOT_COMPUTED, rayleigh_energy=EnergyFlag.NOT_COMPUTED, initial_reference_geometry_energy=EnergyFlag.COMPUTED)[source]#
Provide controls for energy dissipation options.
- Parameters:
- hourglass_energy
enum
Hourglass energy calculation option.
- rigidwall_energy
int
Rigidwall energy dissipation option.
EQ.1: Energy dissipation is not computed.
EQ.2: Energy dissipation is computed.
- sliding_interface_energy
int
Sliding interface energy dissipation option.
EQ.1: Energy dissipation is not computed.
EQ.2: Energy dissipation is computed.
- rayleigh_energy
int
Rayleigh energy dissipation option.
EQ.1: Energy dissipation is not computed.
EQ.2: Energy dissipation is computed.
- initial_reference_geometry_energy
int
Initial reference geometry energy option.
EQ.1: Initial reference geometry energy is not computed.
EQ.2: Initial reference geometry energy is computed.
- hourglass_energy
- Returns:
- bool
True
when successful,False
when failed.
- set_output(print_suppression_d3hsp=False, print_suppression_echo=OutputEcho.ALL_DATA_PRINTED)[source]#
Set miscellaneous output parameters.
- Parameters:
- print_suppression_d3hspbool,
optional
Whether to suppress printing during the input phase flag for the D3HSP file. The default is
True
, which means that none of these are printed: nodal coordinates, element connectivities, rigid wall definitions, nodal SPCs, initial velocities, initial strains, adaptive constraints, and SPR2/SPR3 constraints. IfFalse
, no suppression occurs.- print_suppression_echo
OutputEcho
Print suppression setting during the input phase flag for the echo file. Options are:
ALL_DATA_PRINTED: All data is printed.
SUPPRESSED_NODAL_PRINTING: Nodal printing is suppressed.
SUPPRESSED_ELEMENT_PRINTING: Element printing is suppressed.
SUPPRESSED_NODAL_AND_ELEMENT_PRINTING : Both nodal and element printing is suppressed.
- print_suppression_d3hspbool,
- set_hourglass(controltype=HourglassControl.STANDARD_VISCOSITY_FORM, coefficient=0.1)[source]#
Redefine the default values for the hourglass control type and coefficient.
- set_bulk_viscosity(quadratic_viscosity_coeff=1.5, linear_viscosity_coeff=0.06, bulk_viscosity_type=BulkViscosity.STANDARD_BULK_VISCOSITY)[source]#
Reset the default values of the bulk viscosity coefficients globally.
- Parameters:
- Returns:
- bool
True
when successful,False
when failed.
- create_control_shell(wrpang=20, esort=0, irnxx=-1, istupd=0, theory=2, bwc=2, miter=1, proj=0, irquad=0)[source]#
Provide controls for computing shell response.
- Parameters:
- wrpang
int
,optional
Shell element warpage angle in degrees. The default is
20
.- esort
int
Sorting of triangular shell elements to automatically switch degenerate quadrilateral shell formulations to more suitable triangular shell formulations. The default is
0
.- irnxx
int
,optional
Shell normal update option. The default is
1
.- istupd
int
,optional
Shell thickness change option for deformable shells. The default is
0
.- theory
int
,optional
Default shell formulation. The default is
2
.- bwc
int
,optional
Warping stiffness for Belytschko-Tsay shells. The default is
2
.- miter
int
,optional
Plane stress plasticity option. The default is
1
.- proj
int
,optional
Projection method for the warping stiffness in the Belytschko-Tsay shell and the Belytschko-Wong-Chiang elements. The default is
0
.- irquad
int
,optional
In-plane integration rule for the eight-node quadratic shell element. The default is
0
.EQ.2: 2*2 Gauss quadrature
EQ.3: 3*3 Gauss quadrature
- wrpang
- Returns:
- bool
True
when successful,False
when failed.
- create_control_solid(esort=0, fmatrx=0, niptets=4, swlocl=1, psfail=0, t10jtol=0.0, icoh=0, tet13k=0)[source]#
Provide controls for a solid element response.
- Parameters:
- esort
int
,optional
Automatic sorting of tetrahedral and pentahedral elements to avoid use of degenerate formulations for these shapes. The default is
0
.EQ.0: No sorting
EQ.1: Sort
- fmatrx
int
,optional
Method to use in the calculation of the deformation gradient matrix. The default is
1
.- niptets
int
,optional
Number of integration points used in the quadratic tetrahedron elements. The default is
4
.- swlocl
int
,optional
Output option for stresses in solid elements used as spot welds with material
\*MAT_SPOTWELD
. The default is1
.- psfail
int
,optional
Solid element erosion from negative volume is limited only to solid elements in the part set indicated by PSFAIL. The default is
0
.- t10jtol
float
,optional
Tolerance for Jacobian in four-point, 10-noded quadratic tetrahedra. The default is
0.0
.- icoh
int
,optional
Breaking LS-DYNA convention ICOH is interpreted digit-wise. The default is
0
.- tet13k
int
,optional
Flag for whether to invoke a consistent tangent stiffness matrix for the pressure averaged tetrahedron. The default is
0
, in which case this matrix is not invoked. If this parameter is set to1
, this matrix is invoked.
- esort
- Returns:
- bool
True
when successful,False
when failed.
- create_control_contact(rwpnal, shlthk=0, orien=1, ssthk=0, ignore=0, igactc=0)[source]#
Change defaults for computation with contact surfaces.
- Parameters:
- rwpnal
float
Scale factor for rigid wall penalties, which treat nodal points interacting with rigid walls.
- shlthk
int
,optional
Flag for whether to consider shell thickness offsets in non-automatic surface-to-surface and non-automatic nodes-to-surface type contacts. The default is
0
, in which case these offsets are not considered. If this parameter is set to1
, these offsets are considered.- orien
int
,optional
Flag for whether to automatically reorient contact interface segments during initialization. The default is
1
, in which case reorientation automatically occurs. If this parameter is set to0
, reorientation does not occur.- ssthk
int
,optional
Flag for whether to determine default contact thickness for shells in single surface contact types. The default is
0
, in which case default contact thickness is not determined. If this parameter is set to1
, default contact thickness is determined.- ignore
int
,optional
Flag for whether to ignore initial penetrations in the
\*CONTACT_AUTOMATIC
options. The default is0
, in which case initial penetrations are ignored. If this parameter is set to1
, initial penetrations are not ignored.- igactc
int
,optional
Flag for whether to use isogeometric shells for contact detection when the contact involves isogeometric shells. The default is
0
, which means isogeometric shells are not used. If this parameter is set to1
, isogeometric shells are used.
- rwpnal
- Returns:
- bool
True
when successful,False
when failed.
- create_damping_global(lcid=0, valdmp=0.0)[source]#
Define mass-weighted nodal damping.
Mass-weighted nodal damping applies globally to the nodes of deformable bodies and to the mass center of rigid bodies.
- get_solid_elements()[source]#
Get solid elements.
- Returns:
list
list[0],solid element connectivity,list[0] = [[n1,n2,n3,n4,n5,n6,n7,n8],[…],…] list[1],node coordinates,list[1] = [[x1,y1,z1],[x2,y2,z2],…]
- create_general_keyword(opcode, keyworddata)[source]#
Create general keyword.
- Parameters:
- opcode
str
Keyword card name.
- keyworddatastring
Keyword data.
- Example::
Create a
\*INITIAL_VELOCITY
keyword.$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ *INITIAL_VELOCITY
& vx vy vz vxr vyr vzr 1.480E+01 0.000E+00 0.000E+00 0.000E+00 0.000E+00 0.000E+00 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
opcode = “INITIAL_VELOCITY” keyworddata = “0
- 1.480E+01,0.000E+00,0.000E+00,0.000E+00,0.000E+00,0.000E+00”
create_general_keyword(opcode = opcode,keyworddata=keyworddata)
- opcode
- set_transform(filename=None, idnoff=0, ideoff=0, idpoff=0, idmoff=0, idsoff=0, idfoff=0, transform=None)[source]#
Include independent input files containing model data, allow for node, element, and set IDs to be offset and for coordinates and constitutive parameters to be transformed and scaled.
- Parameters:
- filename
str
Name of file to include in the keyword file.
- idnoff
int
Offset to node ID.
- ideoff
int
Offset to element ID.
- idpoff
int
Offset to part ID.
- idmoff
int
Offset to material ID.
- idsoff
int
Offset to set ID.
- idfoff
int
Offset to function ID, table ID, and curve ID.
- transform
Transform
Definition for the transformation.
- filename
- class ansys.dyna.core.pre.dynabase.NodeSet(nodes=[])[source]#
Defines a nodal set with some identical or unique attributes.
- class ansys.dyna.core.pre.dynabase.SetType[source]#
Bases:
enum.Enum
Contains the enums for setting types.
- class ansys.dyna.core.pre.dynabase.NodesetGeneral(settype=SetType.SHELL, setids=[])[source]#
Bases:
BaseSet
Includes nodal points of element sets.
Element sets are defined by
SET_XXXX_LIST
, whereXXXX
can beSHELL
,SOLID
,BEAM
,TSHELL
orDISCRETE
.
- class ansys.dyna.core.pre.dynabase.NodeSetBox(boxes=[])[source]#
Bases:
BaseSet
include the nodes inside boxes.
- Parameters:
- boxes
list
A list of BOX.
- boxes
- class ansys.dyna.core.pre.dynabase.PartSet(parts=[])[source]#
Bases:
BaseSet
Defines a set of parts with optional attributes.
- class ansys.dyna.core.pre.dynabase.SegmentSet(segments=[])[source]#
Bases:
BaseSet
Defines a set of segments with optional identical or unique attributes.
- Parameters:
- segments
list
[[point1,point2,point3,point4],[point5,point6,point7,point8]…] Define segments.
- segments
- class ansys.dyna.core.pre.dynabase.BeamFormulation[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ShellFormulation[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.IGAFormulation[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.SolidFormulation[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.HourglassType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.BeamSection(element_formulation, shear_factor=1, cross_section=0, thickness_n1=0, thickness_n2=0)[source]#
Defines cross-sectional properties for beams, trusses, discrete beams, and cable elements.
- class ansys.dyna.core.pre.dynabase.ShellSection(element_formulation, shear_factor=1, integration_points=5, printout=0, thickness1=0, thickness2=0, thickness3=0, thickness4=0)[source]#
Defines section properties for shell elements.
- class ansys.dyna.core.pre.dynabase.IGASection(element_formulation, shear_factor=1, thickness=1)[source]#
Defines section properties for isogeometric shell elements.
- class ansys.dyna.core.pre.dynabase.Part(id)[source]#
Defines the part object.
- set_extra_nodes(nodeset)[source]#
Set extra nodes for the rigid body.
- Parameters:
- nodeset
NodeSet
Extra nodes list.
- nodeset
- class ansys.dyna.core.pre.dynabase.BeamPart(pid)[source]#
Bases:
Part
Defines a beam part.
A beam part definition consists of the combined material information, section properties, hourglass type, thermal properties, and a flag for part adaptivity.
- class ansys.dyna.core.pre.dynabase.ShellPart(pid)[source]#
Bases:
Part
Defines a shell part.
A shell part definition consists of the combined material information, section properties, hourglass type, thermal properties, and a flag for part adaptivity.
- set_hourglass(type=HourglassType.STANDARD_LSDYNA_VISCOUS, coefficient=0.1)[source]#
Set the hourglass type, which identifies the bulk viscosity.
- set_shear_factor(factor)[source]#
Set the shear correction factor, which scales the transverse shear stress.
- set_des_surface(despid=0, desxid=0, nquad=1, nsid=0, rsf=-1)[source]#
Generate and place discrete element sphere (DES) elements on the surface of shell elements.
- Parameters:
- despid
int
,optional
Part ID for the generated DES elements. The default is
0
.- desxid
int
,optional
Section ID for the generated DES elements. The default is
0
.- nquad
int
,optional
Number of equally spaced DES elements to create on a shell element in each local shell direction. The default is
1
.- nsid
int
,optional
If defined, this card creates a node set with ID NSID for the nodes generated by this card. The default is
0
.- rsf
float
,optional
Scale factor for determining the DES radius. The default is
1
.
- despid
- class ansys.dyna.core.pre.dynabase.IGAPart(pid)[source]#
Bases:
Part
Defines an isogeometric shell part.
The part definition consists of the combined material information, section properties, hourglass type, thermal properties, and a flag for part adaptivity.
- class ansys.dyna.core.pre.dynabase.SolidPart(pid)[source]#
Bases:
Part
Defines a solid part.
The part definition consists of the combined material information, section properties, hourglass type, thermal properties, and a flag for part adaptivity.
- class ansys.dyna.core.pre.dynabase.DRO[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.DiscretePart(pid)[source]#
Bases:
Part
Defines a discrete part.
The part definition consists of the combined material information, section properties, hourglass type, thermal properties, and a flag for part adaptivity.
- class ansys.dyna.core.pre.dynabase.AnalysisType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.TimestepCtrol[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.Integration[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ImplicitAnalysis(analysis_type=AnalysisType.IMPLICIT, initial_timestep_size=0)[source]#
Activates implicit analysis and defines associated control parameters.
- set_timestep(control_flag=TimestepCtrol.CONSTANT_TIMESTEP_SIZE, Optimum_equilibrium_iteration_count=11)[source]#
Define parameters for automatic time step control during implicit analysis.
- set_dynamic(integration_method=Integration.NEWMARK_TIME_INTEGRATION, gamma=0.5, beta=0.25)[source]#
Activate implicit dynamic analysis and define time integration constants.
- set_eigenvalue(number_eigenvalues=0, shift_scale=0)[source]#
Activate implicit eigenvalue analysis and define associated input parameters.
- set_solution(solution_method=12, iteration_limit=11, stiffness_reformation_limit=55, absolute_convergence_tolerance=1e-10)[source]#
Specify whether a linear or nonlinear solution is desired.
- Parameters:
- solution_method
int
,optional
Solution method for implicit analysis. The default is
12
.- iteration_limit
int
,optional
Iteration limit between automatic stiffness reformations. The default is
11
.- stiffness_reformation_limit
int
,optional
Stiffness reformation limit per time step. The default is
55
.- absolute_convergence_tolerance
float
,optional
Absolute convergence tolerance. The default is
1e-10
.
- solution_method
- Returns:
- bool
True
when successful,False
when failed.
- class ansys.dyna.core.pre.dynabase.ThermalAnalysisType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ThermalAnalysisTimestep[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ThermalAnalysis[source]#
Bases:
BaseObj
Activates thermal analysis and defines associated control parameters.
- set_timestep(timestep_control=ThermalAnalysisTimestep.FIXED, initial_timestep=0)[source]#
Set time step controls for the thermal solution in a thermal only or coupled structural/thermal analysis.
- Parameters:
- timestep_control
ThermalAnalysisTimestep
Time step control.
- initial_timestep
float
,optional
Initial thermal time step. The default is
0
.
- timestep_control
- set_solver(analysis_type=ThermalAnalysisType.STEADY_STATE)[source]#
Set options for the thermal solution in a thermal only or coupled structural-thermal analysis.
- Parameters:
- analysis_type
ImplicitAnalysis
Thermal analysis type.
- analysis_type
- class ansys.dyna.core.pre.dynabase.ContactCategory[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ContactType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.OffsetType[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ContactFormulation[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.SBOPT[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class ansys.dyna.core.pre.dynabase.ContactSurface(set)[source]#
Defines a contact interface.
- set_contact_region(box)[source]#
Include in the contact definition only those SURFA nodes/segments within a box.
- Parameters:
- box
Box
Box-shaped volume.
- box
- class ansys.dyna.core.pre.dynabase.Contact(type=ContactType.NULL, category=ContactCategory.SINGLE_SURFACE_CONTACT, offset=OffsetType.NULL)[source]#
Provide a way of treating interaction between disjoint parts.
- set_mortar()[source]#
Set the mortar contact.
A mort contact is a segment-to-segment, penalty-based contact.
- set_tiebreak()[source]#
Set the contact allow for failure.
A tieback is a special case of this. After failure, the contact usually becomes a normal one-way, two-way, or single surface version.
- set_active_time(birth_time=0, death_time=1e+20)[source]#
Set the birth and death time to active and deactivate the contact.
- class ansys.dyna.core.pre.dynabase.Constraint[source]#
Provides a way of constraining degrees of freedom to move together in some way.
- create_spotweld(nodeid1, nodeid2)[source]#
Define massless spot welds between non-contiguous nodal pairs.
- create_cnrb(nodeset)[source]#
Create a nodal rigid body, which is a rigid body that consists of defined nodes.
- create_joint_spherical(nodes, relative_penalty_stiffness=1.0, damping_scale_factor=1.0)[source]#
Create a joint between two rigid bodies.
- class ansys.dyna.core.pre.dynabase.BoundaryCondition[source]#
Provides a way of defining imposed motions on boundary nodes.
- create_spc(nodeset, tx=True, ty=True, tz=True, rx=True, ry=True, rz=True, cid=0, birth=0, death=1e+20)[source]#
Define nodal single point constraints.
- create_imposed_motion(set, curve, motion=Motion.DISPLACEMENT, dof=DOF.X_TRANSLATIONAL, scalefactor=1, birthtime=0)[source]#
Create an imposed nodal motion on a node or set of nodes.
An imposed nodal motion can be a velocity, acceleration, or displacement.
- Parameters:
- create_temperature(nodeset, curve=None, scalefactor=1)[source]#
Create temperature boundary conditions for a thermal or coupled thermal/structural analysis.
- create_convection(segmentset=None, convection_heat_transfer_coefficient=None, convection_heat_transfer_coefficient_multiplier=0.0, environment_temperature=None, environment_temperature_multiplier=0.0)[source]#
Apply a convection boundary condition on SEGMENT_SET for a thermal analysis.
- Parameters:
- segmentsetSegmentSet.
Segment set.
- convection_heat_transfer_coefficient
Curve
Convection heat transfer coefficient.
- convection_heat_transfer_coefficient_multiplier
float
Curve multiplier for convection heat transfer coefficient.
- environment_temperature
Curve
Environment temperature.
- environment_temperature_multiplier
float
Curve multiplier for environment temperature.
- class ansys.dyna.core.pre.dynabase.InitialCondition[source]#
Provides a way of initializing velocities and detonation points.
- create_velocity(velocityset, angular_velocity=0, velocity=Velocity(0, 0, 0), direction=Direction(0, 0, 0), stime=0)[source]#
Create initial velocities for rotating and/or translating bodies.
- class ansys.dyna.core.pre.dynabase.RigidwallCylinder(tail=Point(0, 0, 0), head=Point(0, 0, 0), radius=1, length=10)[source]#
Bases:
BaseObj
Defines a rigid wall with a cylinder form.
- Parameters:
- tail
Point
,optional
Coordinates of the tail of the normal vector. The default is
(0, 0, 0)
.- head
Point
,optional
Coordinates of the head of the normal vector. The default is
(0, 0, 0)
.- radius
float
,optional
Radius of the cylinder. The default is
1
.- length
float
,optional
Length of cylinder. The default is
10
.
- tail
- class ansys.dyna.core.pre.dynabase.RigidwallSphere(center=Point(0, 0, 0), orient=Point(0, 0, 0), radius=1)[source]#
Bases:
BaseObj
Defines a rigid wall with a sphere form.
- Parameters:
- center
Point
,optional
The center of sphere. The default is
(0, 0, 0)
.- orient
Point
,optional
Vector n determines the orintation of the rigidwall,the center define the tail of normal n, the orient define the head of normal n. The default is
(0, 0, 0)
.- radius
float
,optional
Radius of the sphere. The default is
1
.
- center
- class ansys.dyna.core.pre.dynabase.RigidwallPlanar(tail=Point(0, 0, 0), head=Point(0, 0, 0), coulomb_friction_coefficient=0.5)[source]#
Bases:
BaseObj
Defines planar rigid walls with either finite or infinite size.
- Parameters:
- class ansys.dyna.core.pre.dynabase.GravityOption[source]#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.