Ansys Developer Forum
3 FOLLOWERS
Welcome to the Ansys Developer community! Learn to use the developer tool packages with Ansys simulation tools, get guides on setting active variation from Pyaedt, and talk about your Ansys projects here. Further, engage in discussions about engineering simulation, and physics for Ansys software.
Ansys Developer Forum
2d ago
I would like to calculate deformed face area of a crack face for comparing deformation or crack opening.
Is there a python way to do this ..read more
Ansys Developer Forum
2d ago
Hi,
Is there a way to exit workbench from a running WBJN script?
I know I can use the -X switch to automatically close WB at the end of the WBJN but I need to run with the -I switch.
Thanks ..read more
Ansys Developer Forum
2d ago
I'm trying to create a named selection in Ansys Mechanical. The face id's are given. But I don't know how to use the CreateSelectionInfo Method. According to API Documentation I should pass SelectionTypeEnum.GeometryEntities but I don't know how to import this Enum. How is the workflow to create a named selection with pyansys?
# Initialize the Mechanical app
app = App()
globals().update(global_variables(app))
ExtAPI = app.ExtAPI
model = ExtAPI.DataModel.Project.Model
selection_manager = ExtAPI.SelectionManager
selection = selection_manager.CreateSelectionInfo(SelectionTypeEnum.GeometryEnti ..read more
Ansys Developer Forum
2d ago
Greetings!
I am trying to get the stresses for Beam contact elements I have included in my simulation using PyMAPDL but I can't find out how to do so in the docs.
I basically have a set of beams in my model that work as a connection (bolts) between bodies.
I then apply a preload on these beams to simulate the bolt preload:
Finally, using the worksheet I am able to plot the stresses on these "bolts" on Ansys using the following settings:
Nevertheless, I would like to be able to get these same values inside Python through PyMAPDL so that I can iterate through them and perform different post p ..read more
Ansys Developer Forum
2d ago
hi every one ,
i recently downloaded this soft ,known that i hadn't ansys workbench so there is no license manager soft installed previously so when i release ces edupack ,a message box appears shownig this the folder which i downloaded the soft contains the ansys licens manger the setup file doesn t work when i click on it instead it creates an empty file (with a chinise name),what could i do to solve this problem noted that i didn t have any license number ..read more
Ansys Developer Forum
2d ago
Say we have a CAD assembly where parts have been assigned material properties. How can we then have an empty material assignment inside mechanical when importing the CAD ..read more
Ansys Developer Forum
2d ago
please let me know can i able to create the animation for "transient Fluid simulation problems". i have fluent project file(.flprj)
when i try to create an animation for 100 timesteps i just getting first time step frame only.. but i need to create the animation .gif file for the timesteps from 1to 100.
i have been use the time scoping as well but still not getting what i required.
Anyone please provide any solution for this ..read more
Ansys Developer Forum
2d ago
This is probably a simple naive question. A mechanical simulation has already a "total deformation" result object. When trying to generate the animation file in .mp4 extension I can generate the file but the nodes somehow do not "move". Only the contour displacement color filed changes in the parts but without "movement" or "inflation".
On the other hand, this alternative script option can not run.
This line generates an error:
totalDeform.ExportAnimation("D:\file18.mp4",GraphicsAnimationExportFormat.MP4)
Error is:
NameError: name 'GraphicsAnimationExportFormat' is not defined
Probably I am ..read more
Ansys Developer Forum
2d ago
Note : No CAD tool is used here for creation of beams (its created directly in mechanical)
you could model beams using construction geometry in Ansys mechanical.
Below is an example how you could create beams directly inside mechanical having known a list of x,y,z points.
the example shows creation of below:
straight beams or pipes ,
L-shape pipes,
U-shape pipes,
Helix structures
simple representation of real life cases like crane machine ..read more
Ansys Developer Forum
2d ago
Hi,
I've record some script by Space Claim for creating an easy model.
The script is like below
# Python Script, API Version = V22
# Sketch Circle
plane = Plane.PlaneZX
result = ViewHelper.SetSketchPlane(plane)
origin = Point2D.Create(MM(0), MM(0))
result = SketchCircle.Create(origin, MM(25))
baseSel = SelectionPoint.Create(CurvePoint1)
targetSel = SelectionPoint.Create(DatumPoint1)
result = Constraint.CreateCoincident(baseSel, targetSel)
# EndBlock
# Solidify Sketch
mode = InteractionMode.Solid
result = ViewHelper.SetViewMode(mode, Info1)
# EndBlock
# Extrude 1 Face
selection = Face1
op ..read more