Replies: 4 comments 5 replies
-
|
@Lucansys Could you attach your entire script with necessary geometry files here so I can use them to debug ? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Lucansys f = open(r"C:\Users\Lucas\Desktop\Projetos-PYTHON\pymech\INICIAÇÃO CIENTÍFICA\Dados\Input Displacement\freq_saudavel.txt")
freq_saudavel_str = f.read()
f.close()
displacement.XComponent.Inputs[0].DiscreteValues = [{freq_saudavel_str}]Mike |
Beta Was this translation helpful? Give feedback.
-
|
@Lucansys Do you see the same issue without PyMechanical ? Just launching Mechanical and running your script inside scripting window ? |
Beta Was this translation helpful? Give feedback.
-
|
@dipinknair @mikerife Thank you so much for your help, but I managed to do what I was looking in a different way and it worked!
Now I'm having another problem on exporting the Directional Deformation values as txt or csv and the Frequency Responses Tabular Data as csv. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning!
I am trying to automate my Ansys workflow integrating the PyAnsys Geometry with parametric dimension values and PyMechanical with different input displacement scenarios that are tabular data from bearing tested values.
I tried putting these values inside Globals as .txt files:

And tried to read them like this:

But every time I initialize and try to run this:

This happens:

The values from the tabular data are not inserted inside Ansys, what should I do?
Beta Was this translation helpful? Give feedback.
All reactions