-
DPF: time scoping in non-linear plastic structural analysis
I am new to the pyANSYS framework. Using ANSYS 2023 R2. I am running DPF in ANSYS Mechanical and post processing a structural non-linear plastic analysis with 200 substeps. I'm trying to scope my results in the time domain to the specific time that my max plasticity occurs. I do this with the following function and it kind…
-
Cyclic Symmetry with Multiple Cyclic Index (Angles)
Hi, it would be appreciated, if any one can clarify for the below query. 1) Can we use different sector angles for each component of an Assembly in cyclic symmetry analysis? For example, we are providing 36 (1/10th) degrees of sector angle to Component A and 72 (1/5th) degrees to Component B of sector angle in the…
-
How do I communicate with the Project Page from within Mechanical?
Using Workbench Mechanical scripting how can I get information from the project page? How can I make changes to the project page?
-
In WB Mechanical scripting, how can I change the transformation angles of an external data file?
Here is my project page schematic: I want to change the Rigid Transformation angles: From the Mechanical model where it is use:
-
In Workbench Mechanical scripting, how can I get the location of an external data file?
Here is my project page schematic: I want to get this file location: From the Mechanical model where it is use:
-
Can we get the PID or Process name for an launch: ExtAPI.DataModel.Project.Model.Solve()
I have some basic script to follow the CPU and RAM useage during a solve but it would be more focused if I could get the actual usage for the given analysis. To do that I need to know what PID or Process gets started when a solve is started. Any ideas
-
How to get the total number of design points in Workbench via script?
Do we have any ACT API to count the total number of design points present in the parameter set?
-
Example: How to use different geometry files parametrically in Workbench/Mechanical
This is an example of how to use totally independent geometry files as a parametric input in Workbench. This is done via script parameters in Discovery where the different geometry files are given a numeric value (i.e. a python dictionary of {1:Path1, 2:Path2, etc..}) These values can be used in conjunction with Named…
-
How to get stress tensors on edge of a shell in python results, by defining position and layer
-
Cyclic symmetry with Bonded Contacts
Hi, it would be appreciated, if any one can clarify for the below query. 1) Do cyclic symmetry work with open joints and the contacts between them being bonded? (Figure). 2) Furthermore, do the hoop continuity stress affects both the components due to the bonded contacts (as it behaves as a continuous component) in Cyclic…
-
How to read total deformation results for harmonic analysis in MAPDL?
At a particular frequency and particular phase angle, I get one total deformation result in WB Mechanical. I read the same .rst file in MAPDL and I see the results for the same frequency and phase angle, to my dismay, I observe a different result in MAPDL. For example, for 73.859Hz and 20°, I used SET,,,1,3,73.859,20,, in…
-
How does WB Mechanical calculates total deformation for harmonic results?
At a particular frequency and particular phase angle, I get one total deformation result in WB Mechanical. I read the same .rst file in MAPDL and I see the results for the same frequency and phase angle, to my dismay, I observe a different result in MAPDL. For example, for 73.852Hz and 20°, I used SET,,,1,3,73.859,20,, in…
-
How can be a custom button with some UI can be added to Ansys Workbench
I want to customize the Ansys Workbench UI to add a tab and button as shown below : When I click to Custom Button it should open another custom window as shown below and I can able to provide some action to button click : How this can be done ?
-
How to create a custom material in Ansys Workbench programmatically ? By using APIs/ACT
System Information Application : Ansys Workbench Version : 2022 R2 Problem Statement To create a material manually user can add material name in below option After entering name a blank material is created From the left side pallet, user can add material properties manually, and material object will be created with some…
-
Multi stage cyclic symmetry models
Hi, I need to work on multi-stage cyclic symmetry models in Ansys. Can anyone please guide me on how to start? Also, are there any available learning materials or tutorials on this?
-
Workbench script (createautomaticconnections) does not work
I am running the below wbjn script from workbench and I think all works except of the CreateAutomaticConnections() call as no contacts are created. The same script (cmd) runs fine within mechanical scripting console. import clr clr.AddReference("Ansys.ACT.Core") import Ansys.ACT.Core appAPI =…
-
Python Code object to change objects Before Solve in R2021.2
I want to run a script that updates pressure objects before Solve (as a workaround to some bug in R2021.2 related to not correctly updating the Y-Axis data when opening the WB). But it seems the Python Code object can only read properties in R2021.2, when it is called as 'Before Solve'. When trying to modify a pressure…
-
Selecting an element/node by its Id, how to find which body the element/node corresponds to?
I have an element id, but I need the body to which the element corresponds to. In general, I have a named selection with all the elements of a body. I need to find out to which body the elements correspond to in the assembly.
-
Job Monitor - jobs
Hello I'm using scripting in wb project (ACT Console). Is it possible to somehow get the information on whether the job in job monitor is running, interrupted, etc. from job monitor window? Also is it possible to invoke actions like Interrupt or Abort?
-
Creating custom charts, using python result plots
Hi Is there an example anywhere on how to use charts with python results? basically what are the requirements for the tree item allowed for the chart as input selections. And how can cater my python result file to be an acceptable selection for the chart?
-
How to call csharp from Ansys plugin(IRON PYHTON) .
Is it possible to call c# from IRON Python plugin. If yes kindly share the details.
-
Cannot scope Named selections for a Path Construction Geometry
Hi guys. An easy one for you. I am trying to scope a named selection to a path. I am using : pth.Location = ExtAPI.DataModel.GetObjectById(WeaverEdge_NS.ObjectId) This changes the Scoping method to Namedselection but does not populate the Named selection field. and the pth.location remains [] when I audit during debug. I…
-
Is there any documentation for the Ansys.UI.Toolkit?
With only the helper comments that come up with the autocomplete, it is very difficult. For example, adding a RadioButton to a UI does not follow the same protocols as a Button
-
Clear messages from WB project schematic
Is there a command I can use to clear the messages in the WB project schematic ?
-
How can I export the elements of the deformed geometry?
Hi, I have used the following snippet for exporting the elements and write the in a txt file but was unsuscessful, if anyone could help. allsel ! Select all entities of the model. *GET, E_COUNT, ELEM,0,COUNT /PREP7 my_elements = E_COUNT *cfopen, element_data_file,txt !Create a txt file called "node_data_file"…
-
Need help defining a "Python Result" custom plot for a path.
Hi again :) Would anyone have a sample "Python Result" code for drawing stresses on a path? (Similar to user defined plots on a path) Don't quite know where to look or where to begin. Thanks
-
EXPORTING ELEMENTS OF THE DEFORMED GEOMETRY
Please include the following where applicable: The Ansys simulation product(s) in use: Ansys workbench/mechanical Version of product(s) R2020 Screenshot of error message Copy/paste of any script code Hi, I have used the following snippet for exporting the elements and write the in a txt file but was unsuscessful, if anyone…
-
Issues with changing the coordinate system in a "user define results" plot.
Hi guys :) I am looking into changing the CoordinateSystem field of a User defined plot in a script from "Global coordinate system" to "Solution Coordinate System" but have hit a wall. The macro recorder does not record any changes and the Plot.CoordinateSystem parameter can only accept objects of type coordinate system!…