Skip to main content

Mechanical scripting interface

Fracture

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.Fracture

Bases: object

Defines a Fracture.

Overview

Methods

Name Description
Activate Activate the current object.
AddArbitraryCrack Creates a new ArbitraryCrack
AddComment Creates a new child Comment.
AddContactDebonding Creates a new ContactDebonding
AddCornerCrack Creates a new CornerCrack
AddCrack Creates a new child Crack.
AddCrackInitiation Creates a new CrackInitiation
AddCylindricalCrack Creates a new CylindricalCrack
AddEdgeCrack Creates a new EdgeCrack
AddEllipticalCrack Creates a new EllipticalCrack
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
AddInterfaceDelamination Creates a new InterfaceDelamination
AddPreMeshedCrack Creates a new PreMeshedCrack
AddRingCrack Creates a new RingCrack
AddSMARTCrackGrowth Creates a new SMARTCrackGrowth
AddSemiEllipticalCrack Creates a new SemiEllipticalCrack
AddThroughCrack Creates a new ThroughCrack
CopyTo Copies all visible properties from this object to another.
CreateParameter Creates a new parameter for a Property.
Delete Run the Delete action.
Duplicate Creates a copy of the current DataModelObject.
GenerateAllCrackMesh Run the GenerateAllCrackMesh action.
GenerateAllInterfaceDelamination Generate all interfaces delamination from an external model.
GetChildren Gets the list of children, filtered by type.
GetParameter Gets the parameter corresponding to the given property.
GroupAllSimilarChildren Run the GroupAllSimilarChildren action.
GroupSimilarObjects Run the GroupSimilarObjects action.
PropertyByAPIName Get a property by its API name.
PropertyByName Get a property by its unique name.
RemoveParameter Removes the parameter from the parameter set corresponding to the given property.

Properties

Name Description
Children Gets the list of children.
Comments Gets the list of associated comments.
DataModelObjectCategory Gets the current DataModelObject’s category.
Figures Gets the list of associated figures.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
Properties Gets the list of properties for this object.
RemeshHexDominantToTetrahedralType
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

property Fracture.Children : List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None

Gets the list of children.

property Fracture.Comments : Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None

Gets the list of associated comments.

property Fracture.DataModelObjectCategory : Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the current DataModelObject’s category.

property Fracture.Figures : Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None

Gets the list of associated figures.

property Fracture.Images : Iterable[Ansys.ACT.Automation.Mechanical.Image] | None

Gets the list of associated images.

property Fracture.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSFractureGroupAuto | None

Gets the internal object. For advanced usage only.

property Fracture.Properties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties for this object.

property Fracture.RemeshHexDominantToTetrahedralType : Ansys.Mechanical.DataModel.Enums.RemeshHexDominantToTetrahedral | None

property Fracture.VisibleProperties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties that are visible for this object.

Method detail

Fracture.Activate()

Activate the current object.

Fracture.AddArbitraryCrack()

Creates a new ArbitraryCrack

Fracture.AddComment()

Creates a new child Comment.

Fracture.AddContactDebonding()

Creates a new ContactDebonding

Fracture.AddCornerCrack()

Creates a new CornerCrack

Fracture.AddCrack()

Creates a new child Crack.

Fracture.AddCrackInitiation()

Creates a new CrackInitiation

Fracture.AddCylindricalCrack()

Creates a new CylindricalCrack

Fracture.AddEdgeCrack()

Creates a new EdgeCrack

Fracture.AddEllipticalCrack()

Creates a new EllipticalCrack

Fracture.AddFigure()

Creates a new child Figure.

Fracture.AddImage(filePath: str)

Creates a new child Image.
If a filePath is provided, the image will be loaded from that file,
if not, the image will be a screen capture of the Geometry window.

Fracture.AddInterfaceDelamination()

Creates a new InterfaceDelamination

Fracture.AddPreMeshedCrack()

Creates a new PreMeshedCrack

Fracture.AddRingCrack()

Creates a new RingCrack

Fracture.AddSMARTCrackGrowth()

Creates a new SMARTCrackGrowth

Fracture.AddSemiEllipticalCrack()

Creates a new SemiEllipticalCrack

Fracture.AddThroughCrack()

Creates a new ThroughCrack

Fracture.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject)

Copies all visible properties from this object to another.

Fracture.CreateParameter(propName: str)

Creates a new parameter for a Property.

Fracture.Delete()

Run the Delete action.

Fracture.Duplicate()

Creates a copy of the current DataModelObject.

Fracture.GenerateAllCrackMesh()

Run the GenerateAllCrackMesh action.

Fracture.GenerateAllInterfaceDelamination()

Generate all interfaces delamination from an external model.

Fracture.GetChildren(recurses: bool, children: List[ChildrenType])

Gets the list of children, filtered by type.

Fracture.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

Fracture.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

Fracture.GroupSimilarObjects()

Run the GroupSimilarObjects action.

Fracture.PropertyByAPIName(name: str)

Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.

Fracture.PropertyByName(name: str)

Get a property by its unique name.

Fracture.RemoveParameter(propName: str)

Removes the parameter from the parameter set corresponding to the given property.