Model
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.Model#
Bases:
object
Defines a Model.
Overview#
Activate the current object. |
|
Creates a new AMProcess |
|
Creates a new child Chart. |
|
Creates a new CoSimulationPin |
|
Creates a new child Comment. |
|
Creates a new Composite Failure Criteria object. |
|
Creates a new CondensedGeometry |
|
Creates a new Connections |
|
Creates a new ConstructionGeometry |
|
Run the AddCoupledFieldHarmonic action. |
|
Run the AddCoupledFieldModal action. |
|
Run the AddCoupledFieldStatic action. |
|
Run the AddCoupledFieldTransient action. |
|
Run the AddDesignAssessmentAnalysis action. |
|
Run the AddDesignLifeAnalysis action. |
|
Run the AddEigenvalueBucklingAnalysis action. |
|
Run the AddElectricAnalysis action. |
|
Run the AddExplicitDynamicsAnalysis action. |
|
Creates a new FatigueCombination |
|
Creates a new FeatureDetection |
|
Creates a new child Figure. |
|
Run the AddForcedResponseAnalysis action. |
|
Creates a new Fracture |
|
Get the |
|
Run the AddHarmonicAcousticAnalysis action. |
|
Run the AddHarmonicResponseAnalysis action. |
|
Creates a new child Image. |
|
Creates an ImagePlane and adds it as a child of this object. |
|
Run the AddLSDynaAnalysis action. |
|
Run the AddLSDynaRestartAnalysis action. |
|
Run the AddMagnetostaticAnalysis action. |
|
Creates a new Measures |
|
Creates a new MeshEdit |
|
Creates a new MeshNumbering |
|
Run the AddModalAcousticAnalysis action. |
|
Run the AddModalAnalysis action. |
|
Run the AddMotionAnalysis action. |
|
Creates a new child NamedSelection. |
|
Creates a new Named Selections (Components) for the selected connections. |
|
Creates a new child PartTransform. |
|
Creates a new PythonCodeEventBased |
|
Creates a new PythonResult |
|
Run the AddRandomVibrationAnalysis action. |
|
Creates a new child RemotePoint. |
|
Run the AddResponseSpectrumAnalysis action. |
|
Run the AddRigidDynamicsAnalysis action. |
|
Creates a new SolutionCombination |
|
Run the AddStaticAcousticAnalysis action. |
|
Run the AddStaticStructuralAnalysis action. |
|
Run the AddSteadyStateThermalAnalysis action. |
|
Run the AddSubstructureGenerationAnalysis action. |
|
Creates a new Symmetry |
|
Get the |
|
Run the AddThermalElectricAnalysis action. |
|
Run the AddTopologyOptimizationAnalysis action. |
|
Run the AddTransientStructuralAnalysis action. |
|
Run the AddTransientThermalAnalysis action. |
|
Move the Data Model Objects to a new TreeGroupingFolder. |
|
Creates a new VirtualTopology |
|
Enables interface filtering that only displays model-level items applicable to the |
|
Calculates the center of mass of all unsupressed bodies and point masses. |
|
Run the ClearGeneratedData action. |
|
Copies all visible properties from this object to another. |
|
Create bolt with a cylinder head based on the specified dimensions. The bolt will be |
|
Create a cylindrical nut with the specified dimensions. The nut will be created so that |
|
Create a bolt with a hex head based on the specified dimensions. The bolt will be |
|
Create a hex nut with the specified dimensions. The nut will be created so that the |
|
Creates a new parameter for a Property. |
|
This will create an instance (not an independent copy) of the provided part. The use of |
|
Deletes the provide parts if they exist. Otherwise, nothing happens. An exception will be issued if the argument is invalid. |
|
Disables interface filtering so that model-level items are not filtered out based on |
|
Creates a copy of the current DataModelObject. |
|
EvaluateScriptDefinedResults method. |
|
Run the FreezeMeshOnSelectedParts action. |
|
Gets the list of children, filtered by type. |
|
Gets the commands repository for a file from external model. |
|
Gets the parameter corresponding to the given property. |
|
Gets the Results from the server. |
|
Get the transformation matrix of the provided part. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Creates a results-only system and loads the result file. |
|
Get a property by its API name. |
|
Get a property by its unique name. |
|
Run the RefresMaterials action. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Transform a part with given transformation. Only rigid body transformation is |
|
Run the Solve action. |
|
Run the UnfreezeMeshOnSelectedParts action. |
|
Run the UpdateGeometryFromSource action. |
Get the manager for manipulating import settings for AEDT files. |
|
Gets the AMProcess. |
|
Gets or sets the Ambient Lighting factor. |
|
Gets the Analyses. |
|
Gets the CellId. |
|
Gets the list of children. |
|
Gets or sets the Lighting Color. Can also be set using Hex color codes; three byte hexadecimal numbers (consisting of six digits) preceded by '0x', where each byte (or pair of characters in the Hex code) represents the intensity of red, green and blue in the color respectively. For example, 0xFFFFFF. |
|
Gets the list of associated comments. |
|
Gets the CondensedGeometry. |
|
Gets the Connections. |
|
Gets the ConstructionGeometry. |
|
Gets the Control. |
|
Gets the CoordinateSystems. |
|
Gets the CrossSections. |
|
Gets the current DataModelObject's category. |
|
Gets or sets the Diffuse Lighting factor. |
|
Gets the Analyses. |
|
Gets the FeatureDetection. |
|
Gets the list of associated figures. |
|
Gets the Fracture. |
|
Gets the Geometry. |
|
Gets the GeometryImportGroup. |
|
Gets the list of associated images. |
|
Gets the internal object. For advanced usage only. |
|
Gets the Materials. |
|
Gets the Measures. |
|
Gets the Mesh. |
|
Gets the MeshEdit. |
|
Gets the MeshNumbering. |
|
Gets the NamedSelections. |
|
Gets the PartTransformGroup. |
|
Gets the list of properties for this object. |
|
Gets the RemotePoints. |
|
Gets or sets the Specular Lighting factor. |
|
Gets the Symmetry. |
|
Gets the SystemCaption. |
|
Gets the TableGroup. |
|
Gets the VirtualTopology. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property Model.AEDTImportManager: Ansys.ACT.Automation.Mechanical.AEDTImportManager | None#
Get the manager for manipulating import settings for AEDT files.
- property Model.AMProcess: Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.AMProcess | None#
Gets the AMProcess.
- property Model.Analyses: List[Ansys.ACT.Automation.Mechanical.Analysis] | None#
Gets the Analyses.
- property Model.Children: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
Gets the list of children.
- property Model.Color: int | None#
Gets or sets the Lighting Color. Can also be set using Hex color codes; three byte hexadecimal numbers (consisting of six digits) preceded by '0x', where each byte (or pair of characters in the Hex code) represents the intensity of red, green and blue in the color respectively. For example, 0xFFFFFF.
- property Model.Comments: Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None#
Gets the list of associated comments.
- property Model.CondensedGeometry: Ansys.ACT.Automation.Mechanical.CondensedGeometry | None#
Gets the CondensedGeometry.
- property Model.Connections: Ansys.ACT.Automation.Mechanical.Connections.Connections | None#
Gets the Connections.
- property Model.ConstructionGeometry: Ansys.ACT.Automation.Mechanical.ConstructionGeometry | None#
Gets the ConstructionGeometry.
- property Model.CoordinateSystems: Ansys.ACT.Automation.Mechanical.CoordinateSystems | None#
Gets the CoordinateSystems.
- property Model.CrossSections: Ansys.ACT.Automation.Mechanical.CrossSections | None#
Gets the CrossSections.
- property Model.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property Model.Environments: Iterable[Ansys.ACT.Automation.Mechanical.Analysis] | None#
Gets the Analyses.
- property Model.FeatureDetection: Ansys.ACT.Automation.Mechanical.FeatureDetection | None#
Gets the FeatureDetection.
- property Model.Figures: Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None#
Gets the list of associated figures.
- property Model.Fracture: Ansys.ACT.Automation.Mechanical.Fracture | None#
Gets the Fracture.
- property Model.Geometry: Ansys.ACT.Automation.Mechanical.Geometry | None#
Gets the Geometry.
- property Model.GeometryImportGroup: Ansys.ACT.Automation.Mechanical.GeometryImportGroup | None#
Gets the GeometryImportGroup.
- property Model.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#
Gets the list of associated images.
- property Model.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSModelAuto | None#
Gets the internal object. For advanced usage only.
- property Model.Materials: Ansys.ACT.Automation.Mechanical.Materials | None#
Gets the Materials.
- property Model.Measures: Ansys.ACT.Automation.Mechanical.Measures | None#
Gets the Measures.
- property Model.Mesh: Ansys.ACT.Automation.Mechanical.MeshControls.Mesh | None#
Gets the Mesh.
- property Model.MeshEdit: Ansys.ACT.Automation.Mechanical.MeshEdit | None#
Gets the MeshEdit.
- property Model.MeshNumbering: Ansys.ACT.Automation.Mechanical.MeshNumbering | None#
Gets the MeshNumbering.
- property Model.NamedSelections: Ansys.ACT.Automation.Mechanical.NamedSelections | None#
Gets the NamedSelections.
- property Model.PartTransformGroup: Ansys.ACT.Automation.Mechanical.PartTransformGroup | None#
Gets the PartTransformGroup.
- property Model.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
- property Model.RemotePoints: Ansys.ACT.Automation.Mechanical.RemotePoints | None#
Gets the RemotePoints.
- property Model.Symmetry: Ansys.ACT.Automation.Mechanical.Symmetry | None#
Gets the Symmetry.
- property Model.TableGroup: Ansys.ACT.Automation.Mechanical.TableGroup | None#
Gets the TableGroup.
- property Model.VirtualTopology: Ansys.ACT.Automation.Mechanical.VirtualTopology | None#
Gets the VirtualTopology.
Method detail#
- Model.AddAMProcess() Ansys.ACT.Automation.Mechanical.AdditiveManufacturing.AMProcess #
Creates a new AMProcess
- Model.AddChart() Ansys.ACT.Automation.Mechanical.Chart #
Creates a new child Chart.
- Model.AddCoSimulationPin() Ansys.ACT.Automation.Mechanical.CoSimulationPin #
Creates a new CoSimulationPin
- Model.AddComment() Ansys.ACT.Automation.Mechanical.Comment #
Creates a new child Comment.
- Model.AddCompositeFailureCriteria() Ansys.ACT.Automation.Mechanical.Results.CompositeFailureResults.CompositeFailureCriteria #
Creates a new Composite Failure Criteria object.
- Model.AddCondensedGeometry() Ansys.ACT.Automation.Mechanical.CondensedGeometry #
Creates a new CondensedGeometry
- Model.AddConnections() Ansys.ACT.Automation.Mechanical.Connections.Connections #
Creates a new Connections
- Model.AddConstructionGeometry() Ansys.ACT.Automation.Mechanical.ConstructionGeometry #
Creates a new ConstructionGeometry
- Model.AddCoupledFieldHarmonic() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddCoupledFieldHarmonic action.
- Model.AddCoupledFieldModal() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddCoupledFieldModal action.
- Model.AddCoupledFieldStatic() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddCoupledFieldStatic action.
- Model.AddCoupledFieldTransient() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddCoupledFieldTransient action.
- Model.AddDesignAssessmentAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddDesignAssessmentAnalysis action.
- Model.AddDesignLifeAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddDesignLifeAnalysis action.
- Model.AddEigenvalueBucklingAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddEigenvalueBucklingAnalysis action.
- Model.AddElectricAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddElectricAnalysis action.
- Model.AddExplicitDynamicsAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddExplicitDynamicsAnalysis action.
- Model.AddFatigueCombination() Ansys.ACT.Automation.Mechanical.FatigueCombination #
Creates a new FatigueCombination
- Model.AddFeatureDetection() Ansys.ACT.Automation.Mechanical.FeatureDetection #
Creates a new FeatureDetection
- Model.AddFigure() Ansys.ACT.Automation.Mechanical.Figure #
Creates a new child Figure.
- Model.AddForcedResponseAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddForcedResponseAnalysis action.
- Model.AddFracture() Ansys.ACT.Automation.Mechanical.Fracture #
Creates a new Fracture
- Model.AddGeometryImportGroup() Ansys.ACT.Automation.Mechanical.GeometryImportGroup #
Get the
- Model.AddHarmonicAcousticAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddHarmonicAcousticAnalysis action.
- Model.AddHarmonicResponseAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddHarmonicResponseAnalysis action.
- Model.AddImage(filePath: str) Ansys.ACT.Automation.Mechanical.Image #
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.
- Model.AddImagePlane() Ansys.ACT.Automation.Mechanical.ImagePlane #
Creates an ImagePlane and adds it as a child of this object.
- Model.AddLSDynaAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddLSDynaAnalysis action.
- Model.AddLSDynaRestartAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddLSDynaRestartAnalysis action.
- Model.AddMagnetostaticAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddMagnetostaticAnalysis action.
- Model.AddMeasures() Ansys.ACT.Automation.Mechanical.Measures #
Creates a new Measures
- Model.AddMeshEdit() Ansys.ACT.Automation.Mechanical.MeshEdit #
Creates a new MeshEdit
- Model.AddMeshNumbering() Ansys.ACT.Automation.Mechanical.MeshNumbering #
Creates a new MeshNumbering
- Model.AddModalAcousticAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddModalAcousticAnalysis action.
- Model.AddModalAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddModalAnalysis action.
- Model.AddMotionAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddMotionAnalysis action.
- Model.AddNamedSelection() Ansys.ACT.Automation.Mechanical.NamedSelection #
Creates a new child NamedSelection.
- Model.AddNamedSelectionFromSelectedConnections() List[Ansys.ACT.Automation.Mechanical.NamedSelection] #
Creates a new Named Selections (Components) for the selected connections.
- Model.AddPartTransform() Ansys.ACT.Automation.Mechanical.PartTransform #
Creates a new child PartTransform.
- Model.AddPythonCodeEventBased() Ansys.ACT.Automation.Mechanical.PythonCodeEventBased #
Creates a new PythonCodeEventBased
- Model.AddPythonResult() Ansys.ACT.Automation.Mechanical.Results.ScriptableResults.PythonResult #
Creates a new PythonResult
- Model.AddRandomVibrationAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddRandomVibrationAnalysis action.
- Model.AddRemotePoint() Ansys.ACT.Automation.Mechanical.RemotePoint #
Creates a new child RemotePoint.
- Model.AddResponseSpectrumAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddResponseSpectrumAnalysis action.
- Model.AddRigidDynamicsAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddRigidDynamicsAnalysis action.
- Model.AddSolutionCombination() Ansys.ACT.Automation.Mechanical.SolutionCombination #
Creates a new SolutionCombination
- Model.AddStaticAcousticAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddStaticAcousticAnalysis action.
- Model.AddStaticStructuralAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddStaticStructuralAnalysis action.
- Model.AddSteadyStateThermalAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddSteadyStateThermalAnalysis action.
- Model.AddSubstructureGenerationAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddSubstructureGenerationAnalysis action.
- Model.AddSymmetry() Ansys.ACT.Automation.Mechanical.Symmetry #
Creates a new Symmetry
- Model.AddTableGroup(activate: bool) Ansys.ACT.Automation.Mechanical.TableGroup #
Get the
- Model.AddThermalElectricAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddThermalElectricAnalysis action.
- Model.AddTopologyOptimizationAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddTopologyOptimizationAnalysis action.
- Model.AddTransientStructuralAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddTransientStructuralAnalysis action.
- Model.AddTransientThermalAnalysis() Ansys.ACT.Automation.Mechanical.Analysis #
Run the AddTransientThermalAnalysis action.
- Model.AddTreeGroupingFolder(dataModelObjects: Iterable) Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Move the Data Model Objects to a new TreeGroupingFolder.
- Model.AddVirtualTopology() Ansys.ACT.Automation.Mechanical.VirtualTopology #
Creates a new VirtualTopology
Enables interface filtering that only displays model-level items applicable to the
particular analysis type environments in which you are working.
- Model.CenterOfMass() Ansys.Core.Units.Quantity #
Calculates the center of mass of all unsupressed bodies and point masses.
- Model.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- Model.CreateCylindricalBolt(headHeight: Any, headRadius: Any, shankLength: Any, shankRadius: Any) Ansys.ACT.Interfaces.Geometry.IGeoPart #
Create bolt with a cylinder head based on the specified dimensions. The bolt will be
created so that the base of the head is at the origin and aligned with the Y-Z plane.
Valid input arguments include:
1) `double`
2) `Quantity`
3) A string representation of `double` or `Quantity`, i.e., "1.0" or "1.0 [cm]"
- Model.CreateCylindricalNut(height: Any, innerRadius: Any, outerRadius: Any) Ansys.ACT.Interfaces.Geometry.IGeoPart #
Create a cylindrical nut with the specified dimensions. The nut will be created so that
the base of the nut is at the origin and aligned with the Y-Z plane.
Valid input arguments include:
1) `double`
2) `Quantity`
3) A string representation of `double` or `Quantity`, i.e., "1.0" or "1.0 [cm]"
- Model.CreateHexBolt(headHeight: Any, wrenchWidth: Any, shankLength: Any, shankRadius: Any) Ansys.ACT.Interfaces.Geometry.IGeoPart #
Create a bolt with a hex head based on the specified dimensions. The bolt will be
created so that the base of the head is at the origin and aligned with the Y-Z plane.
Valid input arguments include:
1) `double`
2) `Quantity`
3) A string representation of `double` or `Quantity`, i.e., "1.0" or "1.0 [cm]"
- Model.CreateHexNut(height: Any, innerRadius: Any, wrenchWidth: Any) Ansys.ACT.Interfaces.Geometry.IGeoPart #
Create a hex nut with the specified dimensions. The nut will be created so that the
base of the nut is at the origin and aligned with the Y-Z plane.
Valid input arguments include:
1) `double`
2) `Quantity`
3) A string representation of `double` or `Quantity`, i.e., "1.0" or "1.0 [cm]"
- Model.CreateParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- Model.CreatePartInstance(part: Ansys.ACT.Interfaces.Geometry.IGeoPart) Ansys.ACT.Interfaces.Geometry.IGeoPart #
This will create an instance (not an independent copy) of the provided part. The use of
instanced parts for replication is highly recommended for memory and performance
reasons.
- Model.DeleteParts(parts: Any) None #
Deletes the provide parts if they exist. Otherwise, nothing happens. An exception will be issued if the argument is invalid.
Disables interface filtering so that model-level items are not filtered out based on
the environment types in your model.
- Model.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Creates a copy of the current DataModelObject.
- Model.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType] #
Gets the list of children, filtered by type.
- Model.GetFECommandsRepository(source: str, fileIdentifier: str) Ansys.ACT.Automation.Mechanical.FE.CommandRepository #
Gets the commands repository for a file from external model.
- Model.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- Model.GetTransformationOnPart(part: Ansys.ACT.Interfaces.Geometry.IGeoPart) Ansys.Mechanical.DataModel.Utilities.RigidBodyTransformationMatrix #
Get the transformation matrix of the provided part.
- Model.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Run the GroupSimilarObjects action.
- Model.LoadResultFile(filePath: str) Ansys.ACT.Automation.Mechanical.Solution #
Creates a results-only system and loads the result file.
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.
- Model.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.
- Model.RemoveParameter(propName: str) None #
Removes the parameter from the parameter set corresponding to the given property.
- Model.SetTransformationOnPart(part: Ansys.ACT.Interfaces.Geometry.IGeoPart, transformationMatrix: Ansys.Mechanical.DataModel.Utilities.RigidBodyTransformationMatrix) None #
Transform a part with given transformation. Only rigid body transformation is
supported, i.e., no scaling will be performed. The validity of “transformationMatrix”
will be checked against the constraints of rigid body transforms; an error will be
emitted if the matrix is ill-formed.