-
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…
-
Upcoming Changes to the Ansys Developer Forums
All, In the coming weeks we will begin to make updates/changes to the forum UI/UX. While these changes will not be drastic, they will hopefully improve your experience here and make for more usable navigation. The overall structure of the forums will remain, but you should notice small UI/UX improvements across pages. Once…
-
How do I use the Vanilla Rich text editor?
This forum is a Vanilla forum, and we USED TO use the Vanilla "rich editor*", however, it can be a little unclear how to use it initially. How do you use it? *We have moved to using Markdown and a simple ribbon.
-
Project files for HFSS online courses
I have been going through the "Intro to Ansys HFSS Using a Waveguide" course on the website and although I am following the instructions as closely as possible I get some different results. I would like to look at the project file that the instructor is using so I can compare it to the one I have created however on the…
-
Weird spaceclaim gaps
Hello, as you can see in the attached file i created an arch with Spaceclaim with each stone separate. The thickness changes from the beginning to the top. As next step I wanted to get the outer and inner surface of the arch (on top and bottom, not from the side as displayed on the screenshot). When I copy an edge of the…
-
How can I modify the legend (colormap) in fluent.visualization
I want to modify the legend to display float values instead of exponential values. I could not find an option to do so in the api reference. Is it doable?
-
How to access links to a Record owned by different database for a table in the STK?
I am attempting to report on all linked records for records in a specific table. However, I've realized that one of the link groups I'm trying to get information about is actually owned by a different database, and is not showing up in the Record.links property? Is there any way to find this link in the STK without…
-
How to extract force reactions using DPF inside mechanical ?
-
Converting stress tensor from GCS to LCS
Hi, is there a way to convert the stress tensor from the global coordinate system to local coordinate system? in pyDPF
-
How to extract Joint Forces in Mechanical using DPF.?
I want to get joint force reactions using dpf.
-
is it possible to do the scoping base on part name instead of named selection?
Hi, is it possible to do the scoping when extracting stress etc. using the part name instead of creating named selection cause there are hundereds of bodies in the model and its really time consuming. if there is another way to do this , would be really helpful. thanks in advance.
-
How to define Young's modulus and thermal expansion coefficient using scripts in static structures
How to implement the change of Young's modulus and thermal expansion coefficient with temperature using scripts
-
Unable to Edit/Delete Static Linked Records with Streamlined STK
Summary I was attempting to use the Streamlined layer of the Granta MI STK (version 3.2) to remove all links from a link group for a specific record, however, this does not seem to be possible. I have detailed the issue I'm encountering below. If anyone has any suggestions, or if I'm doing something wrong, please let me…
-
Print temperatures node ids and locations using DPF inside mechanical
We have a named selection (say MY_NS surface scoped) and we want to obtain and print temperatures, node ids and locations in transient thermal analysis.
-
Create groups from vertices on semi circles (top bottom face of half cylinders)
Say we have a half cylindrical body, with semi circle like faces on the top and bottom. How can we then create a group of the center vertex (so vertex existing in the center of the straight line of the semi circle, as shown below)?
-
How to export the table pane contents to an excel using mechanical scripting?
You could do the same for multiple result objects,forceobjects,ACT objects:Please see below script to add multiple items in one go. Basically any object which has contents in tabular pane can be exported in similar way
-
How to create beam bending moment (BMD) and shear force diagram (SFD) using PyMAPDL and PyDPF
shear force and bending moment diagram example below uses BEAM188 elements . example uses pyMAPDL to run the simulation Pydpf to extract result matplotlib to plot the SF and BM diagrams You can alter the beam SECTYPE,SECDATA, fix_location and force location as input arguments of the function
-
How to create custom field on custom mesh using DPF in mechanical
Below is an example using mechdpf for creation of custom field on a custom mesh
-
How can I create a selection of all edges parallel to the x-axis using Scripting?
How can I create a selection of all edges parallel to the x-axis using Scripting?
-
Add Circular cross section in mechanical via scripting
Hi, I am trying to add a circular cross section in mechanical via the scripting interface. I can add one using either commands if there is already the "Cross Sections" folder: cs = Model.CrossSections.AddCircularCrossSection() cs = ExtAPI.DataModel.Project.Model.CrossSections.AddCircularCrossSection() If I try to run it…
-
How do I access coordinates of a vertex?
How do I access coordinates of a vertex?
-
script to automatically export coordinate systems in DesignModeler
Hello all, There are over 100 local coordinate systems, but I don't want to manually export them out. Is there any script that could write all the coordinate systems (each has one center and 3 axes) into a file? Thanks! Regards, Rahul
-
How to parse Fatigue Life result data from .rst file by ansys-mapdl-reader
Hi, I want to parse the Fatigue Life result data from .rst file. Could it be done with ansys-mapdl-reader or other ansys libs?
-
PyDPF does not return displacement at all the nodes when used mapping operator
Hi, I have a modal analysis result and I need to map the displacement for a particular mode onto a particular path. The path has been created in Mechanical and extracted the points along the path using 'Export Text File option'. To map the displacement along the path I am using the following code: disp =…
-
How can we create a vertex on a face belong to a cylinder?
Say we have a cylindrical body, how can we then create a vertex on each of the 2 capping/end faces (so at the top and bottom)?
-
3D xprt machine design
My 3D xprt design doesn't seem to recognize the manual slot dimensions I input, resulting in an error. The model is only successfully designed when operating in auto mode. Can anyone help me with it please ?
-
Unable to connect Pyprimemesh server.
Hello All, Can anyone guide me, How to launch Ansys pyprimemesh library and connect to server? Rightnow I have ansys 2023R1 licensed version and python 3.9 version. Also installed pyprimemesh file from Github. then afterthat how to use and connect? I am already taking help of pyansys documentary.…
-
Is there a faster and more efficient way to extract tabular data on Linux?
Unfortunately pane=ExtAPI.UserInterface.GetPane(MechanicalPanelEnum.TabularData)control = pane.ControlUnknown This approach doesn't work on Linux and also the alternative found here: https://discuss.ansys.com/discussion/comment/4362#Comment_4362 Is very slow. Thank you
-
pyDPF - element nodal forces - Element with id x has higher number of elementary data...
Hello, Trying to extract contact reaction force in pyDPF. The code below returns: rst_file = glob.glob('*.rst')[1]model = dpf.Model(rst_file)global_mesh = model.metadata.meshed_region#results - element nodal forceresults = model.resultselement_nodal_forces = results.element_nodal_forces().outputs.fields_container() My…
-
How to retrieve temperature solution on specific coordinates by using PyDPF?
Hi, I am new to PyDPF. I have a transient thermal analysis and I would like to retrieve by using PyDPF the temperature solution on nodes which have the smallest distance from specific coordinates. What would be the best way to do this?
-
twisting twice in design modeler
Hi everyone, I'm trying to insert a twisted tape to a helical tubes in design modeler. I know how to draw helical tubes and twisted pipe, but didn't know how to combine them like shown in the image. Highly appreciated, Kerry
-
How do I export Tabular data of selected result objects to a CSV?
How do I export Tabular data of selected result objects to a CSV?
-
How can I create a selection of all edges parallel to the x-axis using Scripting?
How can I create a selection of all edges parallel to the x-axis using Scripting ?