-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'petrobras:master' into dev-sync_ucs_map
- Loading branch information
Showing
12 changed files
with
249 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Version 1.4.0 | ||
------------- | ||
|
||
The following enhancements and bug fixes were implemented for this release: | ||
|
||
|
||
Fix y label for frequency response plots | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Fix the y label for the frequency response plots, showing 'magnitude' instead of displacement, velocity or acceleration. | ||
|
||
|
||
Documentation improvements | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Documentation improvements in the tutorials and class/functions missing from the API reference. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from ross.units import Q_, check_units | ||
|
||
|
||
class Probe: | ||
"""Class of a probe. | ||
This class will create a probe object to be used in the rotor model. | ||
The probe is used to measure the response of the rotor at a specific | ||
location and orientation. | ||
Parameters | ||
---------- | ||
node : int | ||
Indicate the node where the probe is located. | ||
angle : float, pint.Quantity | ||
Probe orientation angle about the shaft (rad). | ||
tag : str, optional | ||
A tag to name the element. | ||
Example | ||
------- | ||
>>> import ross as rs | ||
>>> probe1 = rs.Probe(10, Q_(45, "degree"), "Probe Drive End - X") | ||
>>> probe1.node | ||
10 | ||
>>> probe1.angle | ||
0.7853981633974483 | ||
""" | ||
|
||
@check_units | ||
def __init__(self, node, angle, tag=None): | ||
self.node = node | ||
self.angle = angle | ||
if tag is None: | ||
self.tag = f"Probe - Node {self.node}, Angle {self.angle}" | ||
else: | ||
self.tag = tag | ||
|
||
@property | ||
def info(self): | ||
return self.node, self.angle | ||
|
||
def __str__(self): | ||
return ( | ||
f"Probe {self.tag}" | ||
f'\n{20*"-"}' | ||
f"\nNode location : {self.node}" | ||
f"\nProbe orientation angle (rad) : {self.angle}" | ||
) |
Oops, something went wrong.