-
Cannot assign scoping to few result user objects at once
Hi all, I've got an issue with one of the extensions I'm developing. Long story short, after clicking new button added on the Mechanical's toolbar, set of four result objects is created in the Mechanical's Tree. Everything works fine apart from one thing. When I'm selecting all of those results and try to change scoping…
-
faces nodes connectivity property error
Hello, I'm new to dpf. How do I resolve this error? "ValueError: faces_nodes_connectivity property is not supported" Thank you
-
Error loading ACT extension with custom ACT Solver
Hi. I'm facing a strange random error when loading my ACT extension with certain WB projects. My extension features a custom ACT solver for implementing a custom calculation routine. After I add the custom ACT solver to my project, it connects to an existing Static Structural and creates a new Analysis in the Mechanical…
-
Referencing scriptable extension using the command
Hi, I would like to reference the script extension using the command. Is it possible to add specific extension directory path? I would like to than load the extension using Extension.LoadExtension…
-
Configuring MS Visual Studio to Develop IronPython for ANSYS Scripting
Hi ANSYS Developer Community: I would like to be able to develop IronPython code in Microsoft Visual Studio for scripting applications in ANSYS Spaceclaim, ANSYS Discovery, ANSYS Electronics Desktop, etc. Right now, it is unclear to me how to properly configure Microsoft Visual Studio to work with IronPython as oppsed to…
-
How to get Extension Format
-
Is there any way to block a particular license and release when needed through scripting?
I have a mixed wizard but there are limited licenses. I would like to block a particular license and release it before launching an application. Is there any way to do that via script or subprocess using license client executables?
-
DPF Operator C++
Hey everyone, I have a question about creating a custom operator in C++. Can this created operator be called in a DPF script in IronPython? Could someone please provide me with an example of creating such an operator and how to call it? Thank you in advance!
-
Example throws DPFServerException
Hi, I would like to use DPF for one of my tasks. I have installed ansys-dpf- core version 0.8.1and tried the example according to the documentation from ansys.dpf.core import Model from ansys.dpf.core import examples model = Model(examples.find_simple_bar()) print(model) But when I get to print line it raises this error:…
-
How to get stress tensors on edge of a shell in python results, by defining position and layer
-
Using the DocumentOpen.Execute(r"---") to open a document
-
Mechanical ACT - "expected int, got str" error
-
How do I get the geometry unit in Mechanical?
The geometry dimensions will not returned in active unit system. How do I check the unit system for geometry parameters?
-
Creating beam profile in SpaceClaim and assigning to curve
I would like to create a beam profile and assign it to a curve using script. I know start point and end point.
-
Get bounding box of whole CAD assembly in SpaceClaim/Disovery.
I would like to get the bounding box of the whole CAD using script. Is that any way to do that?
-
How can I plot deformed and undeformed mesh ( with result) together using PyDPF?
I would like to plot result having deformed mesh and undeformed mesh after getting results from PyDPF. The plot should looks something similar to Mechanical, like below.
-
Unable to read cdb file in PyPrimeMesh.
I am unable to read a cdb file exported from 2023R1 Mechanical or APDL solver. The PyPrimeMesh server throws below error.
-
How Do I automate the toolbar options for convert and extend
I am looking for script which can Automate the manual conversion and extension of selected entities.
-
Import Materials in PyMechanical
-
Getting a Mechanical.Body from a Geometry.GeoBodyWrapper
-
Plot field Vectors on a Named Selection in PyDPF
How to plot field vectors on a named selection in PyDPF?
-
Extracting results from a Path in Transient analysis and creating a 3D Surface Plot in PyDPF
How to extract results from a path in a Transient analysis and create a spatiotemporal 3D surface plot in PyDPF?
-
How to plot result on cut mesh using PyDPF
Hi I would like to plot a one side of a volume geometry, for which I have nodal results, and would like to cut the geometry with specific plane. I have tried the mesh_plan_clip operator but as soon as I use it, the output mesh is cannot really plot the results. I have tried to create a possible solution with the PyVista…
-
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 do I get the centroid of my contact elements
I want to save the centroid of the contact elements in all my contacts in a CSV. How would I do that in Mechanical?
-
Creating Tabs within a Custom User Interface in Fluent
Hello, we're a team of computer science students at Colorado School of Mines, and we just started work on a project to write a Fluent plugin for Dr. Richard GIlmore. In the dialog box that controls the plugin, we'd like to have tabs that navigate to different pages/panels(/tables?) of interface elements. Below is an…
-
APDL solve exit command?
I manage a custom creep module linked in via usercreep.F It currently includes functionality to stop a solution when a creep limit value is reached via the erhandler function. However I gotten requests to see if it is possible to exit without error so that post processing commands are run. I tried the systop subroutine,…
-
What is the correct method to add lakhs of waypoints on a STKControl3D(Globe) in C#?
I Tried 2 methods, but both of them are really slow in adding waypoints. I have atleast 300000 coordinates. // ---- 1 ---- this.STKControl3D.Application.ExecuteCommand($"AddWaypoint */Aircraft/Aircraft1 DetTimeFromVel {lat[i]} {lon[i]} {lalt[i]} 200"}; // ---- 2 ---- IAgVeWaypointsElement waypoint; waypoint =…
-
Why is the serverinfo file empty ? PyFluent with Slurm scheduler
When the PyFluent job is launched using a slurm bash shel script it fails because the serverinfo file is empty (it exists though). It works localy (outside from the job scheduler). This is the error: 2023-03-20 14:20:26,998 root ERROR The launch process has been timed out. /tmp/serverinfo-nzxpy3ap.txt [] Traceback (most…
-
How to make a property read only in python result plot
Hi everyone Here's an easy one. Would like to know the function that sets the a python result property to read only or locked so that it cannot be changed by the user. Thanks