Allow axial direction in probe response #1075
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces support for obtaining the response in the axial direction of a 6 dof model using the Probe class. This was created to resolve issue #1059.
Changes:
Probe
Class:direction
parameter to the constructor to distinguish between radial and axial measurements.direction
is radial, theangle
parameter must be provided; for axial direction,angle
isNone
.get_label()
method to generate informative labels for probes based on their attributes (node
,angle
, anddirection
).Handling of
Probe
Objects and Tuples inTimeRensponseResults
andFaults
classes:Probe
class.DeprecationWarning
when tuples are detected, advising users.Plotting Time Response Results:
plot_1d()
method to accept lists ofProbe
objects directly.get_label()
method.Example 1: Probes without tags
Example 2: Probes with tags
Note: The
probe_units
argument may no longer be necessary when plotting responses, as the use of tuples for representing probes has been deprecated in favor of using theProbe
class.