-
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…
-
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…
-
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.
-
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
-
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…
-
(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…
-
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',…
-
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?
-
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.
-
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…
-
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…
-
What is the correct approach between Merge and Share Topology, and how does each option affect:the p
Hi, In my current FEM model, the substrate is modeled as a solid block, and another layer is created on top region of the substrate to define a separate body with a thickness of 5–25 µm. The two bodies are geometrically in contact and form a common interface.In SpaceClaim, I see the options “Merge” and “Share'' Topology.…
-
Supported way to remove tree objects when removing a custom object
Hey all, I developed an application in Mechanical 25R1 that automatically inserts a custom object in my project and detects my named selections to automatically create a joint aswell as a bonded contact with predefined stiffness and thermal conductance. I can then use my custom object to switch between different presets…
-
Issues with Discovery Licensing in Pymechanical
Hello, I am trying to ensure that when i'm opening pygeometry in my session that it pulls a mechanical enterprise license instead of a disco1 license.
-
Hashin failure criteria from Python result
Hi, I'm doing a Static structural simulation in Workbench of an assembly containing metal and composite parts. The composite part is preprocessed in ACP. In the static structural system I apply a pre-meshed cyclic symmetry object, which is prohibiting me from inserting a Composite Failure Tool (version 2025R2). As a…
-
Using DPF in Mechanical ACT Wizard
Can I use DPF from Mechanical ACT wizards? Adding the standard import statements for DPF into a wizard script file raises an error. import mech_dpf No module named mech_dpfImportExceptionat Microsoft.Scripting.Runtime.LightExceptions.ThrowException(LightException lightEx)at…
-
A way to extract the modal participation factors in PyDPF
I am looking for a way to get the modal effective mass in all degrees of freedom from a modal analysis result set (rst, mode files etc). If I can get the participation factors, I can then calculate the modal effective mass. So either modal effective mass or participation factors works for me. I did see some hints online…
-
ACT Result Reader: Limitations on CreateMeshData method
Hi development team, I am facing issues with ACT Result Reader when I want to get mesh data from RST file, specifically I need to further work with contact elements. Following code returns to mesh_rst variable very frequently None or obviously truncated mesh data: analysis = ExtAPI.DataModel.Project.Model.Analyses[0]reader…
-
Start configuration unit system
Hi I'm using Ansys Mechanical 2023 R2 on Windows 11, and I’d like it to automatically start with the unit system (mm, t, N) instead of the default (m, kg, N). Now I have to manually switch to millimeters and i want to skip that. Is there a way to make Ansys always start in mm by default? Thanks in advance for the help
-
How can I estimate solver hours before submitting a job?
Hi everyone, I’m running a series of nonlinear transient simulations in Ansys Mechanical using remote HPC resources, and I’m trying to estimate how many solver horas the job might take before actually launching it. Is there any best practice, formula, or even rough heuristic that helps predict simulation time based on…
-
Help with Scripting External Pressure Settings in ANSYS Mechanical (2023 R1)
Hello, I'm using scripting to import external pressure into ANSYS Mechanical. However, I'm having trouble finding the correct syntax to change two specific options that are available in the Mechanical GUI but not recorded via the script recorder: How can I change the "Loaded Area" option from Initial Geometry to Deformed…