
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 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
Ansys Developer Forum
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
Ansys Developer Forum
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
Ansys Developer Forum
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
Ansys Developer Forum
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
Ansys Developer Forum
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
Ansys Developer Forum
5d ago
Hello
How to use ScriptArgs to attach value for SCDM script?
Can you provide one example?
Thank you ..read more
Ansys Developer Forum
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
Ansys Developer Forum
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
Ansys Developer Forum
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