-
I am using Mechanical for frequency response analysis. I am trying to get the results using dpf.
The sim's DPF model returned the following
Acceleration is preferred, but if it is not included, the frequency response of the displacement of the nodes selected in Named Selection is also acceptable. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @hrntsm, It seems that DPF did not find acceleration results in the Now to get the displacement fields for the nodes in a Named Selection, you should be able to follow this example despite it showcasing a modal analysis. |
Beta Was this translation helpful? Give feedback.
-
Hi, @hrntsm acceleration results are not stored by default in the RST for a Harmonic Response Analysis. Mechanical calculates them as the second order derivative of displacement. For a Harmonic response, you can multiply the Displacement field with ( |
Beta Was this translation helpful? Give feedback.
-
Thanks @PProfizi @ayush-kumar-423 ! I was able to retrieve the results.
|
Beta Was this translation helpful? Give feedback.
Hi @hrntsm,
You can indeed convert a
post.Dataframe
to anp.array
as shown in this example. The caveat is that since NumPy arrays do not have column or row labels, you must first select a column of interest before exporting it.As for plotting graphs, we do not have yet this capability native for the
post.Dataframe
so for now the best way is to perform selections and filtering on theDataframe
, then queryDataframe.array
, and then plot this data usingMatplotlib
orPlotly
.