Skip to main content

Mechanical scripting interface

PostContactTool

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.PostContactTool

Bases: object

Defines a PostContactTool.

Overview

Methods

Name Description
Activate Activate the current object.
AddComment Creates a new child Comment.
AddFigure Creates a new child Figure.
AddFluidPressure Creates a new ContactFluidPressure
AddFrictionalStress Creates a new ContactFrictionalStress
AddGap Creates a new ContactGap
AddHeatFlux Creates a new ContactHeatFlux
AddImage Creates a new child Image.
AddInitialInformation Creates a new ContactDataTable
AddPenetration Creates a new ContactPenetration
AddPressure Creates a new ContactPressure
AddSlidingDistance Creates a new ContactSlidingDistance
AddStatus Creates a new ContactStatus
ClearGeneratedData Run the ClearGeneratedData action.
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.
EvaluateAllResults Run the EvaluateAllResults action.
GenerateInitialContactResults Generate Initial Contact Results and Mesh Parts
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.
Location Gets or sets the Location.
Properties Gets the list of properties for this object.
ScopingMethod Gets or sets the ScopingMethod.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

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

Gets the list of children.

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

Gets the list of associated comments.

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

Gets the current DataModelObject’s category.

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

Gets the list of associated figures.

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

Gets the list of associated images.

property PostContactTool.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSContactToolAuto | None

Gets the internal object. For advanced usage only.

property PostContactTool.Location : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the Location.

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

Gets the list of properties for this object.

property PostContactTool.ScopingMethod : Ansys.Mechanical.DataModel.Enums.GeometryDefineByType | None

Gets or sets the ScopingMethod.

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

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

Method detail

PostContactTool.Activate()

Activate the current object.

PostContactTool.AddComment()

Creates a new child Comment.

PostContactTool.AddFigure()

Creates a new child Figure.

PostContactTool.AddFluidPressure()

Creates a new ContactFluidPressure

PostContactTool.AddFrictionalStress()

Creates a new ContactFrictionalStress

PostContactTool.AddGap()

Creates a new ContactGap

PostContactTool.AddHeatFlux()

Creates a new ContactHeatFlux

PostContactTool.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.

PostContactTool.AddInitialInformation()

Creates a new ContactDataTable

PostContactTool.AddPenetration()

Creates a new ContactPenetration

PostContactTool.AddPressure()

Creates a new ContactPressure

PostContactTool.AddSlidingDistance()

Creates a new ContactSlidingDistance

PostContactTool.AddStatus()

Creates a new ContactStatus

PostContactTool.ClearGeneratedData()

Run the ClearGeneratedData action.

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

Copies all visible properties from this object to another.

PostContactTool.CreateParameter(propName: str)

Creates a new parameter for a Property.

PostContactTool.Delete()

Run the Delete action.

PostContactTool.Duplicate()

Creates a copy of the current DataModelObject.

PostContactTool.EvaluateAllResults()

Run the EvaluateAllResults action.

PostContactTool.GenerateInitialContactResults()

Generate Initial Contact Results and Mesh Parts

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

Gets the list of children, filtered by type.

PostContactTool.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

PostContactTool.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

PostContactTool.GroupSimilarObjects()

Run the GroupSimilarObjects action.

PostContactTool.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.

PostContactTool.PropertyByName(name: str)

Get a property by its unique name.

PostContactTool.RemoveParameter(propName: str)

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