How to run functions that are defined in an ACT extension or Mechanical Add-on from a script?
Ansys Developer Forum
by Landon Mitchell Kanner
2d ago
I have an ACT extension installed for Mechanical. I want to run an Mechanical script that will leverage some of the automation that is defined in the ACT extension. How can I do that ..read more
Visit website
Mechanical ACT Custom Load for Macro Encapsulation: define step
Ansys Developer Forum
by Pernelle Marone-Hitz
2d ago
I'm creating a custom load object through Mechanical ACT that encapsulates some APDL macro. This writes the APDL code to the ds.dat. How can I define at which step of a multistep analysis this macro gets written ..read more
Visit website
Displaying values from a python code object on the geometry
Ansys Developer Forum
by Dan
3d ago
I have a result I've calculated on a set of nodes in a python code object. I'm aware that there's a way to set the contour using dpf, but as I need individual node positions and a custom function to calculate my result, I'd rather use my existing values rather than figure out how to do it all again using dpf. Is there a way to set the output contour without using dpf? Perhaps a half way house where I can compose a field to use in the dpf SetOutputContour function (I have node Ids and values per node), but how do I construct such a field ..read more
Visit website
How to access shell information with DPF.
Ansys Developer Forum
by Victor Trejo
3d ago
Hi! I would like to know how to query the following shell layer information with DPF (C++): Thickness Orientation angle Number of integration points Material ID Thanks in advance! Victor Trejo ..read more
Visit website
Error: attribute 'FieldsFactory' of 'namespace#' object is read-only
Ansys Developer Forum
by Ashish
5d ago
Hi, I am referring to a previous post on this forum which explained how we can convert a field to scalar values. rot_mat_f = dpf.FieldsFactory.CreateScalarField(1) https://discuss.ansys.com/discussion/2150/how-do-you-transform-direction-stresses-to-a-different-coordinate-system-in-dpf I am trying to use the same syntax in my code, but I am getting an error that says attribute 'FieldsFactory' of 'namespace#' object is read-only Please help me resolve this error. I am unable to find any details on "FieldsFactory" either in DPF documentation, scripting in mechanical document or within ANS ..read more
Visit website
Remote Displacement, PromoteToRemotePoint()
Ansys Developer Forum
by sombodyfromtheworld
5d ago
Hi I want to change the 'Scoping Method' to 'Remote Point' in Remote Displacement and select my existing Remote Point. I run this code: RP = ExtAPI.DataModel.Project.Model.AddRemotePoint() # create remote point RD = ExtAPI.DataModel.Project.Model.Analyses[0].AddRemoteDisplacement() # create remote displacement RD.PromoteToRemotePoint() = RP # here I need to assing my existing remote point to the scoping method in remote displacement If I run this function RD.PromoteToRemotePoint() it creates a brand new remote point that I don't need, instead I need to select my existing remote point ..read more
Visit website
ScriptArgs
Ansys Developer Forum
by Helen
5d ago
Hello How to use ScriptArgs to attach value for SCDM script? Can you provide one example? Thank you ..read more
Visit website
Running R2023R2 using Python Script on HPC using PBS Scheduler
Ansys Developer Forum
by robR_CFD
5d ago
Hello Awesome Community!, Just wondering if there is anyone out there running per above and if you could kindly share an example of a PBS script for launching Fluent with python script. I am old school using TUI but keen to move across. Thanks ..read more
Visit website
How to get nice increments on x-axis?
Ansys Developer Forum
by willblatt
6d ago
In MAPDL, when creating a graph, I can set /xrange,min,max but is there a away to set the interval spacing? X values are all integers, just trying to get the graph to display points nicely at integer spacing ..read more
Visit website
How to get Workbench Mechanical RSM job to return user files/folders?
Ansys Developer Forum
by willblatt
6d ago
In my Mechanical model I have a /POST1 command snippet that generates some files in a folder. The files are created correctly out on the remote solver (I can see the files in the scratch area), but when Mechanical copies the files back to my local directory, the folder and files are left behind. Is there a way to have RSM also copy back these files ..read more
Visit website

Follow Ansys Developer Forum on FeedSpot

Continue with Google
Continue with Apple
OR