-
What do you think of the forum? We want to hear from you!
Hello Everyone! The Ansys Developer Forum has been in operation for some time now and we want to hear what you (non-Ansys users) think of it. If you have any feedback on how things could be developed further, areas you think could be improved and how useful the site has otherwise been for you and your company please please…
-
I signed up but I can't post because of a "Permission Problem", how can I fix this?
So I came here to post a question, but I logged in and now I can't post? I get this error Who do I need to talk to to get this fixed?
-
Welcome! Please Read Before Posting
Welcome to the Ansys Developer community! If you are using the developer tool packages with Ansys simulation tools then this is your community space. This community has been created to ask questions of your peers, exchange ideas, and converse about developer issues within an Ansys context. Here are some guidelines: Keep…
-
New search functionality for the Ansys dev portal
Hello to our forum and portal users! We are very excited to be on the verge of rolling out our new unified search for the Ansys Developer Portal and Forums. This search will bring together the documentation and articles from the dev portal and posts and information on the forum into a new single search. Over time we will…
-
LS-PrePost: Documented Python command 'partofelem_id' don't work (runtime error)
Here all Python DataCenter commands for LS-PrePost are listed (page 183 and following): https://ftp.lstc.com/anonymous/outgoing/lsprepost/SCLexamples/lsppscripting.pdf But if you try my example inside LS-PrePost, you get the element connectivity but not the partID: "RuntimeError: There is no partofelem_id" import…
-
Extract Creep Strain from RST file
Hi everybody, I would like to extract the creep strain of a .rst result File via the ansys-dpf-core python module. The code that i execute is: model = dpf.Model(rst_file) # loading the rst file print(model.metadata.result_info) # here the output of the print statement shows that the creep_strain is available. It says…
-
Delay on the Mechanical GUI when using a few thousands of objects
Dear All, dear Developer, I'm facing with a huge delay in my model when using about 6000 joint objects (fixed connections between pipes and tubesheets in a heat exchanger). If I click on a unique joint or I want to add an extra one, I have to wait about 2s for the generation/creation of the object on a high-end…
-
How can I automatically detect and measure an internal deformed hole in LS-DYNA results?
In an LS-DYNA simulation, a hole is formed in a part. How can i automatically measure the diameter of this hole, and how it changes through the thickness of the part.
-
Create mesh interfaces in Fluent
Dear support I am trying to model a vertical axis wind turbine (VAWT) and to do so I need to declare the interfaces between the boundaries of my rotating domains. My interfaces are named as following: ['interface_rotating_zone_ext', 'interface_rotating_zone_int', 'interface_airfoil_1_ext',…
-
Is there a way to run multiple Mechanical instances using embedded PyMechanical version?
I would like to run a parametric study, varying the pressure load and run multiple analysis using Embedded PyMechanical. Using ansys-mechanical-core==0.12.7 and tried using the app.new() method, which doesn't seem to work as expected.
-
What Changed Need to be Made from Steady to Transient?
I have made a python script for running steady k-omega SST flow on an aircraft geometry, varying vertical and horizontal velocity components to simulate different angles of attack, trying to obtain lift and drag coefficients. The steady script works perfectly for what I need it to do. I now need the same script but for…
-
How to command snippets to parts automatically?
Say we have a Static system, with CZM debonding and we need to account for temp. dep. on that and on the contact stiffness. We thus need to convert solid187 elements to solid227 with thermal option, say via a command snippet placed under each 3D solid flexible body only. How can that be automated using scripting?
-
Python Result Table Property Provider
Has anyone figured out how to implement a table property for a python result similar to the in ACT extensions? I would like to take advantage of some of the plotting capabilities in python results, but need user input in some form of table.
-
Mesh WorkSheet Python Scripting
I am attempting to write a scripts which takes each named selection listed in the Mesh Worksheet and write it to an excel file. I am having difficulty traversing the named selection worksheet, various methods have failed. Any Advice? I am currently in 25R2.
-
How to stop the unnecessary expansion of the object in my simulation.
Heyy y'all! I have an object with helical structure wound over a cylindrical Object. One side of the object is fixed. At the edge of the other Side, I give an external Displacement of 30 degrees. (as shown in the picture) At the end of the simulation, the side with the external Displacement, in addition to the rotation…
-
Accessing the python interpreter output
Dear all, I'm trying to use the Python Result Object (CPython interpreter) to define properties (scoping, user-defined inputs) for a custom evaluation algorithm. I'm having difficulties with defining these properties: if the reload_props function inside is not flawless, it simply won't run and debugging is almost…
-
How can we automatically replace all solid bodies with free standing point masses using scripting?
Say we have some 3D solid parts and we want to automatically replace them all with free standing point masses using scripting?
-
How to retrieve created bodies from an opened document.
I would like to know how to retrieve the bodies created by the methods DocumentOpen.Execute and DocumentInsert.Execute. The methods return a result object that has a GetCreated method, but I don't understand the syntax of GetCreated. It seems to require a TDoc object but TDoc doesn't exist. I would like to know how many…
-
How can I save my geometry using design.export_to_disco() ?
I'm testing out pyGeometry. I was able to create my intended geometry. However, when I try to save it I keep running into the same error: GeometryExitedError: Geometry service connection terminated: Could not find file 'C:\Users\fneves_esss\AppData\Local\Temp\4ac83aa2-2d09-4b99-8d8b-b92fe2e9c916.dsco'. Shouldn't the file…
-
Is there a way to update the source term for each cell in a cell zone based on temperature?
I want to update the Source Term value at each time step for cells in a specific cell zone. Each cell should have its own Source Term, which is dependent on the cell's temperature. The current path I have so far is outlined below. I’m open to alternative approaches or suggestions. I can successfully extract temperature…
-
Time Averaged wall shear strees contour plot by using pyfluent visualization
i want calculate and plot time averaged wall shear stress by using the pyfluent visualization capabilities there is no direct variable(option) in Ansys fluent to calculate this and plot. so i have report file that contains wall shear stress values for each time step and by using that file iam able to create time averaged…
-
Initializing a parametric study
Hello, I would like to initialize a parametric study with Ansys Fluent. I did the tutorials on the example site, and used the command solver_session.settings.parametric_studies.initialize(project_filename="project_1") It works pretty well. When trying to reproduce the same task with my case, I get the final error message:…
-
How to automate Body Annotations taking the name of the bodies?
I want to have annotations displaying body names with different colors for all the bodies present in my Model
-
(Error: addtogroup ambiguity) iterative group creation/destruction
Hello, I am currently working on a MODE project. My basic code structure is the following: switchtolayout;select("G1");delete;addstructuregroup;set("name","G1");addrect; set("name", "substrate");addtogroup("::model::G1"); However, when calling this script in a loop in another script I run into a problem. The first run goes…
-
using pyaedt to set material properties in HFSS
Hello, I am trying to set material properties via a python script for an iterative set of simulations. The script runs without error, but when I view the material properties in HFSS they are unchanged, and the simulation results don't change (if I change the material properties directly in HFSS the simulation results do…
-
Any API command related to shared topoloy in Ansys Space Claim.?
Hi Team. Is their any API command or other methods to unselect faces which are in common share for shared topology body using Space Claim Scripting.
-
Fluent 2023R1: solution.initialization.patch.calculate_patch is inactive and cannot be used
I am using Fluent 2023R1 and trying to perform a temperature patch on the fluid domain to initialize the combustion simulation. I have already performed standard initialization, but the calculate_patch command remains inactive. When I run: python solver.solution.initialization.patch.calculate_patch( domain="Fluid",…
-
Electrostatic Analisys - Inception Voltage dialog
Hello, I would like to know if it is possible to export the data computed in the "Plot" tab of the Inception Voltage Evaluation dialog (after plotting the field lines) in an Electrostatic simulation in Ansys Maxwell, using a Python script. I have tried using the Script Recording feature, but none of the actions performed…
-
How to export electric field and coordinates on a surface in a volume via script
I have a solid object named Electrode in volume Region, and I want to extract the electric field values in Region on the surface of Electrode. This is what's plotted when I select Electrode and then go to Fields > E > Mag_E and then in the following dialogue box select Region under In Volume and tick Plot on surface only.…
-
Why my ansys is crashing when it's in non_graphical mode
Hi, I use PYAEDT to use maxwell2D. My problem is that it's only wokring in graphical mode. Each time I put it in non_graphical, Ansys crash. I belive Ansys is crashing when I try to import a DXF but I'm not sure. Any advice?
-
Change number of significant digits in legend in figure.
Hello everyone. Number of significant digits in legends of results can be modified like this: legend = Ansys.Mechanical.Graphics.Tools.CurrentLegendSettings() legend.Digits = 2 However, when I try to do something similar with the legend in a Figure that is a children of a result, I get the following error: Current legend…
-
How to extract the results of UX UY UZ real and image value of specific nodes on each sector?
I have a single sector cdb file and I did the following with it in apdl: 1: Apply cyclic symmetry: cyclic,nsector,360/nsector /cycexpand,,oN 2: Apply asymmetric forces on different sectors: *do,i,1,nsector CYCOPT,LDSECT,i. *do,j,1,5 f,ffnode(j,1),fx,realvalue,imagvalue,. *enddo *enddo 3: Impose harmonic response analysis:…
-
pymechanical Code for importing mutiple dat files and merging the mesh
I have 3 dat/cdb files. I need to write a pymechanical code in the embedded interface of python. would you please let me know the commands on how to import the 3 cdb files and merge the mesh using numerge command. I want to use the similar format of code in the example problem.…
-
Using an Excel file to modify a model setup in Mechanical
I've developed this tool that demonstrates how to use an Excel file to modify a model setup in Mechanical. It is available on the Ansys Github, on this link: https://github.com/ansys/ACE-demo-excel_template_for_mechanical_model_setup This repository provides the code to a demo of using an Excel file to modify a model setup…